4. Working with Classes : How You Can Reference Objects : How You Can Set and Get Attributes : variable = reference_variable.attribute
 
Share this page                  
variable = reference_variable.attribute
variable
Can be a global variable or any variable. This variable must have an appropriate data type for the particular attribute.
The following example assigns the field that currently has input focus to the reference variable charfield. Note that InputFocusField is an object.
charfield = CurFrame.InputFocusField;
To get the value of an attribute for a field or menu item, you use the field function in the assignment statement. The syntax is: