Gets a property’s value at run time. Use the GetPropertyValue( )method to access a property’s value dynamically, even if you do not know the property’s name or type when you are using the method at compile time.
Return type:
Access:
Applies to:
return-value = class-object-reference:GetPropertyValue (INPUT object-reference AS Progress.Lang.Object ,INPUT property-name AS CHARACTER )
return-value = class-object-reference:GetPropertyValue (INPUT property-name AS CHARACTER )
return-value = class-object-reference:GetPropertyValue (INPUT object-reference AS Progress.Lang.Object,INPUT property-name AS CHARACTER, INPUT index AS any-data-type )
return-value = class-object-reference:GetPropertyValue (INPUT object-reference AS Progress.Lang.Object,INPUT property-name AS CHARACTER, INPUT index AS any-data-type )Specifies a reference to an instance of Progress.Lang.Class class; this must be a type that exposes the property. For instance properties, object-reference and class-object-reference must be the same type or one must inherit from the other, and both must either define the property or inherit it.Specifies a reference to an ABL or .NET class instance that exposes the specified property as an instance member. The compiler allows object-reference to be declared as any object type. At run time, the object type must resolve to the type that exposes the property.
Note: The overloads of GetPropertyValue( )that take an object reference can be used with a static property by setting object-reference to the Unknown value (?). Alternatively, use the overloads that are designed specifically for static properties.
Note: A run-time error arises if object-reference does not inherit from class-object-reference, or vice-versa.Specifies a CHARACTER name of the property. The AVM evaluates property-name at run time. Note that the property cannot be defined in a built-in type.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |