sevWriteTable
sevWriteTable(x_stateHandle S_componentName o_table[?partitionl_partitions] ) =>t/nil
Description
Writes the component table in the specified XML state file.
Arguments
|
Name of the XML component whose value you want to write in the table. |
|
|
Table that contains information about the specified component. |
|
Value Returned
|
The component table is written to the specified XML state file. |
|
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