KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Getting the names of objects in a form
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Mac & Win
Published On: December 14, 2004
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

In 4D 2004, you can get the names of all the objects in the current form of the current table using the new command GET FORM OBJECTS. This command returns the list of all objects in the form of array(s). It takes a text array parameter to store the object names. As optional parameters, it takes a pointer array to store the pointers to variables or fields associated with the objects and an integer array to store the page number of the form which contains the objects. The arrays passed as parameters correspond to each other. For example, the code below can be inserted into the object method of each object in the form to display the object name of the object selected.

Code