!getproperty()
Prototype
!getproperty
(
type(*)
,
property object
)
property
Return value
This function returns the value of the property which may be of any type: type(*).
Description
Retrieves the value of a property of an object, using the property object for the type, and the object itself. This can be useful if you are working with an unknown object, and wish to retrieve the values of its properties. Using the type object the properties can be retrieved and now with this function the values of those properties can be accessed. Without this function, the name of the property must be known at compile time in order to retrieve a property's value from an object.
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
object | .nul | type(*) | The object that contains the property for which the value is to be retrieved. |
property | .nul | property | The property object for the property whose value is to be retrieved. |