Tech Tip: Clickable fields and variables
PRODUCT: 4D | VERSION: 14.0 | PLATFORM: Mac & Win
Published On: February 14, 2014
In versions of 4D prior to v14, fields and variables of type text, time, date, and number were not considered clickable objects. In v14, fields of this type are clickable and will respond to On Clicked and On Double Clicked events.
To create a clickable field or variable in a form, first make sure the field or variable has the on clicked event checked. Once those properties are checked, create a method for the field or variable. Use the following code.
Case of : (Form event=On Clicked) // Your code here : (Form event=On Double Clicked) // Your code here End case |