SIMPOL Documentation

!getproperty()

Prototype

!getproperty ( type(*) object, property 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

ParameterDefault valueType nameDescription
object.nultype(*) The object that contains the property for which the value is to be retrieved.
property.nulproperty The property object for the property whose value is to be retrieved.