Sets the value of a class property. The statement allows you to refer to a class property by providing a character expression for the property name, along with an object reference, THIS-OBJECT system reference, or the name of a class. The compiler supports both ABL user-defined types and .NET types for the object reference or class name.
Note: The DYNAMIC-PROPERTY statement also works with .NET indexed properties. Normally, ABL allows you to refer to a .NET indexed property without using the property name, but for dynamic access you must use the property name, typically Item indexed property.
DYNAMIC PROPERTY( object-reference class-type-name, property-name , index ) = new-valueSpecifies 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.Specifies an integer expression for the index of the specified element. Use index to set or retrieve an individual array element. You can also operate on an entire array by removing the index the same way as you work with non-dynamic property access.
Note: The value of new-value cannot be converted to the property’s type.
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |