Xbasic
OBJECT.VARIABLES Function
Syntax
.Variables([C variable_frame_context])
Arguments
- variable_frame_context
Optional. Default = . Determines the scope of the variables returned. The following values are possible.
- "Local"
- "Shared"
- "Global"
Description
Returns a pointer to a dot variable containing the values for an object's variables.
Discussion
This method only works for forms at design time. If you want to get global variables at runtime, use vGlobalFrame = global_variables(). If you want to get session variables at runtime, use vSessionFrame = session_variables(topparent.SessionHandle()).
The <OBJECT>.VARIABLES() method applies to:
- Alpha Anywhere (for <OBJECT> use the keyword "A5")
- Control Panel (for <OBJECT> use the keyword "CONTROLPANEL".
The <OBJECT>.VARIABLES() method returns a pointer to the dot variable Variable_List that contains the values of the object's variables. Optional flag for 'local,shared and global'.
Example
dim ptr as P ptr = ControlPanel.Variables() ? ptr.A_DB_CURRENT_PATH = "C:\Program Files\A5V5\"
Limitations
Desktop applications only.
See Also