Product Documentation
Virtuoso Studio Design Environment SKILL Reference
Product Version IC23.1, November 2023

dbCreateEnumProp

dbCreateEnumProp( 
g_object 
t_name 
t_value 
l_string 
) 
=> d_prop / nil 

Description

Creates an enumerated property for an object.

An enumerated property can have only string values.

Arguments

g_object

The database object which can be a dbId, ddId, or dbBagId.

t_name

Name of the property.

t_value

Value of the property.

l_string

Array of strings enumerating the possible values of the property, one of which must equal t_value.

Value Returned

d_prop

An enumerated property belonging to the database object.

nil

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 nil if an error occurs.

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
 ⠀
X