Product Documentation
Virtuoso ADE SKILL Reference
Product Version IC23.1, November 2023

sevReadValue

sevReadValue(
x_stateHandle 
t_componentName
t_attributeName
)
=> t_componentValue / nil

Description

Reads the value of an XML component from the specified XML state file.

Arguments

x_stateHandle

The handle of a state file.

This can be any integer value.

t_componentName

Name of the XML component whose value you want to read.

t_attributeName

Name of the attribute of the specified component.

Value Returned

t_componentValue

The value of the specified component is returned.

nil

Indicates an error.

Examples

Reads the values of a component test. A combination of write and read commands are used in this example.

directory = "/home/user"
stateFile = strcat(directory "/xml.state")
// The above commands return the handle of the XML state file.
stateHandle = sevOpenXmlFile(stateFile)
// The above commands opens the XML state file handle.
sevWriteValue(stateHandle "test" "a" list(nil))
sevWriteValue(stateHandle "test" "b" list('a))
// The above commands write the argument values a and b for component test.
sevReadValue(stateHandle "test" "b")
// The above command reads the value for argument b of component test. sevCloseXmlFile(stateHandle)
// The above command closes the XML state file handle.

Return to top
 ⠀
X