172
Type
Value
Description
1
Number
2
Schedule
3
String
4
Range
GetVariableValue
GetVariableValue
GetVariableValue
GetVariableValue ( VarId )
( VarId )
( VarId )
( VarId )
Returns the current value of the specified Variable.
Syntax
HRESULT GetVariableValue(
[in] long VarId,
[out, retval] BSTR* Value
);
Parameters
VarId
[in] ID of specified Variable.
Value
[out, retval] String containing the current value of the specified Variable.
Remarks
The returned value is a string that represents the stored value of the Variable. The string value will need to be
converted by the caller into the actual type, e.g. a Variable of type
long
.
The format for the returned string depends on the Variable’s type (see
GetVariableType ( VarId )
page
171
).