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

dbReplacePropList

dbReplacePropList( 
g_object 
l_params 
) 
=> t / nil 

Description

Replaces the specified list of properties (l_params) in the given object. dbReplacePropList will trigger Pcell evaluation once as an atomic operation.

Arguments

g_object

Database object or property bag for which the given list of properties will be replaced.

l_params

List of properties. This list is a list of sub-lists. Each sub-list should contain three elements: a property name, a property type (acceptable to dbCreateProp) and a value corresponding to the property type. The first two of these elements must be strings.

Value Returned

t

The properties are replaced successfully.

nil

The function fails.

Examples

dbReplacePropList(cv list( list("prop1" "int" 100)
list("prop2" "string" "hello") ) )
dbReplacePropList(cv '(("enable" "boolean" t) ("a" "int" 3) ("b" float" 4.3u)))
dbReplacePropList(cv '(("enable" "boolean" t)))
dbReplacePropList(cv '(("enable" "boolean" "TRUE")))
dbReplacePropList(cv '(("count" "int" 3)))
dbReplacePropList(cv '(("pdkinfo" "ILList" ((1 2 3) (4 5 6) (("hello" "world"))))))

Related Topics

Property Creation and Modification Functions


Return to top
 ⠀
X