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

Get( ) method

Gets the value of the data member or property. This method can only be used to get the value of a public data member or property; otherwise, the method will raise an error.
Return type: The type of the data member
Access: PUBLIC
Applies to: Progress.Reflect.Variable class

Syntax

Get ( )

Get ( INPUT index AS INTEGER )

Get ( INPUT instance AS Progress.Lang.Object )

Get ( INPUT instance AS Progress.Lang.Object,
INPUT index AS INTEGER )
index
For a data member or property that is an array, the index indicates which element to retrieve. If one of the overloads containing this parameter is invoked for a data member or property that is not an array, the method will raise an error.
instance
An instance of the class that contains the data member or property. This instance must be of the type specified by either the DeclaringClass or OriginatingClass property of the Progress.Reflect.Variable instance. Using the instance parameter with a static data member or property will raise an error.

Notes

*When applied to a property, the method will invoke the property's GET method, if there is one.
*Use the Get( ) and Get(index) overloads to get the value of static data members and properties, and use the Get(instance) and Get(instance, index) overloads for instance data members and properties. Calling an overload on a data member or property of the incorrect scope will raise an error.
*When called on a data member or property that is an array, the Get( ) and Get(instance) overloads return the entire array.
*The Get(index) and Get(instance, index) overloads cannot be used to retrieve individual elements from a .NET array.