Property - PropertyMap

Note: This statement is not available in the Add Statement dialog box or the Statements pane.

Returns the value of a property in a PropertyMap or a default value if the property is not found.

To create a PropertyMap for a window or control, use the GetPropertyMap statement.

Syntax

Property("PropertyName", DefaultReturnValue)

Arguments

Argument Description
PropertyName Property to return the value from.
DefaultReturnValue Value returned if the property is not found. If not specified, the default value is null.

Supported objects

PropertyMap

Return value

Value Description
Value Property value from the PropertyMap.

Example

propertyMap = Window("Window").Control("control1").GetPropertyMap()

textVal = propertyMap.Property("Text")

notSureValue = propertyMap.Property("PropertyMayNotExist", "Value is not found.")