OBJNAME keyword

The OBJNAME keyword is used to support string look-up for the object name of a form. The Object Name is used to name the Objects menu and to prompt the user if he or she closes a form without saving application data.

This keyword is used most frequently for forms which use an object in their data source that is not the primary collection for the form. Alternately, this keyword can be used for forms which have no data source at all.

WinStudio retrieves the object name from the primary data source. WinStudio then looks for a string named "o" + objectname, and if such a string exists, it uses the value of that string. Finally, WinStudio checks for the presence of the OBJNAME keyword in the primary data source. If the keyword is present, WinStudio retrieves the value of the keyword and tries to look up a string by that name. If the string is found, the string's value is the object name for the form. Otherwise, the content of the OBJNAME keyword is the object name for the form.

注意: The OBJNAME keyword is also used to configure the text used for the Objects menu, the prompt to save (if there is a separate prompt to the user to save the data in the collection), and the status bar text. It is supported in the primary data source of the form (as before), as well as everywhere the CA( ) keyword is supported.