getPropertyType macro

Use this macro to get the type of a Property the UserArea.

string getPropertyType(long property.node)

Argument

Description

Property Node

The node of a previously retrieved property. Note that if the given node is not a property, the result is unpredictable.

Return value: The type of the given property.

Example:

long    property.node
string  property.type(50)
property.node = getNamedProperty("salary")
if property.node <> 0 then
    property.type = getPropertyType(property.node)
    if property.type <> "AmountType" then
        dal.set.error.message(sprintf$(
             "@Property type %s is invalid for salary property",
             property.type))
        return(DALHOOKERROR)
    endif
    |* Handling for salary ...
endif