Try OpenEdge Now
skip to main content
ABL Reference
Class Properties and Methods Reference : GetVariables( ) method
 

GetVariables( ) method

Returns an array of Progress.Reflect.Variable instances describing the class variables that match the specified conditions. There is no guaranteed order for the returned variables. If there are no variables that match the specified conditions, the method returns an indeterminate array.
Return type: Progress.Reflect.Variable class EXTENT
Access: PUBLIC
Applies to: Progress.Lang.Class class

Syntax

GetVariables ( )

GetVariables ( INPUT flags AS Progress.Reflect.Flags )
flags
A Progress.Reflect.Flags instance indicating the access mode(s), scope(s), and/or class level(s) the returned variables must have. See Progress.Reflect.Flags enumeration for more information.

Notes

*GetVariables( ) only returns public, non-static variables. GetVariables(flags) does return ABL class variables defined as protected, private, and/or static if they satisfy the specified conditions, although you cannot get or set the values of any private or protected variables that are returned. Only private variables that are defined in the given class are returned; private variables inherited from a super class are not included.
*This method does not return .NET class fields defined as private or internal.