Note: This statement is not available in the Add Statement dialog box or the Statements pane.
Returns True or False to indicate if a property name exists in a PropertyMap.
To create a PropertyMap for a window or control, use the GetPropertyMap statement.
Syntax
HasProperty("PropertyName")
Arguments
| Argument | Description |
|---|---|
| PropertyName | Property name to search for. |
Supported objects
Return value
| Value | Description |
|---|---|
| True | Property exists in the PropertyMap. |
| False | Property does not exist in the PropertyMap. |
Example
propertyMap = Window("Window").Control("control1").GetPropertyMap()
textVal = ""
If propertyMap.HasProperty("Text") Then
textVal = propertyMap.Property("Text")
End If