Persistence
If a Variable is persistent, the value of the Variable is stored to permanent storage each time it is changed. So, if
the device is reset or the power is turned off, the Variable will still have its last value when the system restarts.
If the Variable is not persistent, then the Variable’s value is set to its default whenever the system restarts.
AssignVariable ( VarName, IsExpression, Value )
Sets a Variable to a particular value.
Syntax
HRESULT AssignVariable(
[in]BSTR VarName,
[in]long IsExpression,
[in]BSTR Value,
[out, retval]VARIANT_BOOL* Success
);
Parameters
VarName
[in] Name of the Variable to assign
Value
to.
IsExpression
[in] Set to 0 if
Value
is a simple string, and 1 if
Value
is an expression.
Value
[in] The value to be given to the Variable. The format of this parameter should match the type
of the Variable to be assigned (see GetVariableValue ( VarId ), page
).
Success
[out, retval] TRUE if specified Variable’s value was updated, FALSE if updating the Variable
failed.
Remarks
AssignVariable
does not change the type of the Variable when the assignment is made. If the Value
parameter does not match the Variable’s type, the result is undefined.
DeleteVariableById ( VarId )
Delete a Variable specified by its ID.
Syntax
HRESULT DeleteVariableById(
[in] long VarId,
[out, retval] VARIANT_BOOL* Success
);
Parameters
VarId
[in] ID of the Variable to delete.
Success
[out, retval] TRUE if the specified Variable was successfully deleted, FALSE if deleting the
Variable failed.
Remarks
Get the ID of the Variable by calling either
GetVariableByName
or
GetVariableByIdx
.
DeleteVariableByName ( Name )
Delete a Variable specified by its name.
16
Summary of Contents for WACI NX-22
Page 36: ......
Page 53: ...Finally drag and drop selected files from your File Explorer...