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

sevWriteTable

sevWriteTable(
x_stateHandle
S_componentName
o_table
[ ?partition l_partitions ]
)
=> t / nil

Description

Writes the component table in the specified XML state file.

Arguments

x_stateHandle

The handle of a state file.

S_componentName

Name of the XML component whose value you want to write in the table.

o_table

Table that contains information about the specified component.

?partitions l_partitions

List of partitions.

Value Returned

t

The component table is written to the specified XML state file.

nil

Indicates an error.

Examples

Writes the specified component table in a given XML state file.

directory = "/home/user"
stateFile = strcat(directory "/xml.state")
stateHandle = sevOpenXmlFile(stateFile)
// The above commands return the state file handle and open the XML state file.
table = makeTable('tableformat nil)
table['a] = list(nil)
table['b] = "a"
// The above commands creates the table and specify two arguments a and b of type list and string respectively.
sevWriteTable(stateHandle "test" table)
// The above command writes the specified table for the component 'test'.
=> t

When you view the contents of the XML state file, the following output appears:

<?xml version="1.0"?>
<statedb ICVersion="IC6.1.6-64b.ADE.634" version="5">xml
    <component Name="test" Type="skillTable">tableformat
     <field Name="b" Type="string">"a"</field>
<field Name="a" Type="skillDpl"></field>
</component>
</statedb>
=> t

Return to top
 ⠀
X