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

dbReplaceRangeProp

dbReplaceRangeProp( 
g_object 
t_name 
t_propType 
g_value 
g_lBound 
g_uBound 
) 
=> d_prop / nil 

Description

Replaces a range property for an object.

This function is similar to dbCreateRangeProp except that if a property named t_name already exists on the specified object, it is replaced by the one specified as t_propType, g_value, g_lBound, and g_uBound.

Arguments

g_object

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

t_name

Name of the property.

t_propType

Type of the property.

g_value

Value of the property. g_value, g_lBound, and g_uBound must be consistent with t_propType.

g_lBound

Lower bound of the range of values.

g_uBound

Upper bound of the range of values.

Value Returned

d_prop

A range property belonging to the database object.

nil

The value is not in the given range or if d_object is not a hierarchical property.

Examples

dbReplaceRangeProp(dbId "prop" "float" 120.0 0 nil)
dbReplaceRangeProp(dbId "prop" "int" 5 3 12)dbReplaceRangeProp

Related Topics

Property Creation and Modification Functions


Return to top
 ⠀
X