![background image](http://html1.mh-extra.com/html/xantech/crm-wic/crm-wic_reference-manual_3156372089.webp)
89
GetVariableByName ( Name )
Returns a Variable’s ID (not the value) from its name.
Syntax
HRESULT GetVariableByName(
[in] BSTR Name,
[out, retval] long* VarId
);
Parameters
Name
[in] Name of Variable to get the ID of.
VarId
[out, retval] ID of the named Variable.
GetVariableName ( VarId )
Returns the Variable’s name from its ID.
Syntax
HRESULT GetVariableByName(
[in] long VarId,
[out, retval] BSTR* Name
);
Parameters
VarId
[in] ID of the Variable to get the name of.
Name
[out, retval] Name of specified Variable.
Remarks
Variable names consist of letters, numbers, and the underscore. All other characters are not permitted.
GetVariablePersist ( VarId )
Returns the persistence status of a Variable.
Syntax
HRESULT GetVariablePersist(
[in] long VarId,
[out, retval] long* Persist
);
Parameters
VarId
[in] ID of specified variable.
Persist
[out, retval] Returns 1 if the variable is persistent, and 0 if it is not.
Remarks
When a Variable is persistent, the value of the variable is stored to permanent storage after 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.
Summary of Contents for CRM-WIC
Page 1: ...Reference Manual Programming Guide Room Monitor Web Intelligent Controller Model CRM WIC...
Page 8: ...8 Hardware User Interface Hardware User Interface for the CRM WIC...
Page 16: ...16 For full details see the RPC section at the end of this manual...
Page 43: ...43 This expression resolves to this value 0 1 4 3 1 Hello Hello 0...
Page 98: ...98 Index...