sevWriteValue
sevWriteValue(
x_stateHandle
t_componentName
t_attributeName
t_compValue
)
=> t / nil
Description
Writes a XML component value in the specified XML state file.
Arguments
Value Returned
|
An XML component value is written in the specified XML state file. |
|
Examples
Writes the values of the arguments a and b of 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 valuesaandbfor componenttest.
sevReadValue(stateHandle "test" "b")
// The above command reads the value for argumentbof componenttest. sevCloseXmlFile(stateHandle)
// The above command closes the XML state file handle.
When you view the state file contents, the following output appears:
<?xml version="1.0"?> <statedb ICVersion="IC6.1.6-64b.ADE.634" version="5">xml <test Name="a" Type="skillDpl"></test> <test Name="b" Type="list">(a)</test>
</statedb>
Return to top