dbCreateEnumProp
dbCreateEnumProp(g_objectt_namet_valuel_string) =>d_prop/nil
Description
Creates an enumerated property for an object.
An enumerated property can have only string values.
Arguments
|
Array of strings enumerating the possible values of the property, one of which must equal t_value. |
Value Returned
|
A property named t_name already exists on the specified object, or if the initial value is not in the enumerated property range passed in. Also returns |
Examples
dbCreateEnumProp(cv "prop1" "apple" list("apple" "pear" "peach"))
dbCreateEnumProp(cv "prop1" "float" list("sink" "float" "beach" "pool"))
Related Topics
Property Creation and Modification Functions
Return to top