KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Entering a command into object variable
PRODUCT: 4D Developer | VERSION: 11 | PLATFORM: Mac & Win
Published On: June 12, 2008
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

4D v11 SQL now allows you to enter text, methods which return a value, and 4D functions or 4D commands directly into the object variable name field in the object property list.
Examples:

Text:


Number:


4D command:


Project method:


The name of the Project method is "test". This method returns a string "Hello World"and it consists only one row "$0:="Hello World"

Results:


This will simplify the look of your form and give you more control over object variables. This feature is available only for project forms and will not work with default input or output table forms.

Commented by Luis on July 17, 2009 at 5:26 PM
The restriction of this feature only working on Project Forms and not in Table Forms no longer applies when using 4D v11 SQL 11.4