#
CwGetPropertyType

### Syntax:

    sType = CwGetProperyType(hObject, sProperty)

            sType           (string) The type of the property.

            hObject         (handle) The object to examine.

            sProperty       (string) The name of the property to examine.

### Description:

This function returns a string indicating the type of the requested property (sProperty) of the requested object (hObject). The property type can be one of the following:

"string" --A string "integer" --A numeric with no fractional part "real" --Any numeric "color" --A color (See properties section for more details). "boolean" --0 or 1 where 1 indicates true and 0 indicates false. "color curve" --not implemented "function" --A dummy value. Reading yields nothing useful but setting it will trigger a useful side-effect. "unused" --Not used.

### Example:

### Remarks:

/* Function to list all properties of an object, store them in a string and return it. */

getprops:procedure arg handle

cr = x2c('0A')

p = CwGetFirstProperty(handle) property='' do while p \= '' property = property||" '" || p || "' = '"|| , CwGetProperty(handle,p)||"'" '('|| , CwGetPropertyType(handle,p) || ')' || cr p = CwGetNextProperty() end return property

Functions by NAME | Index | Functions by PURPOSE