InViewCtrl Methods
UpdateVariable
UpdateVariableEx
Chapter 5: InView Control and InView Control API
Properties
Description
Syntax
HRESULT UpdateVariable
(short nVariable, long nValue)
Parameters
nVariable
The variable number to update.
Valid values are 0 ... 99.
nValue
The new value for the variable. The display is
limited to 16-bit numbers, which can be signed or
unsigned.
Return Value
S_OK - Success
E_FAIL - Failure
Description
This method is used to update a variable in the
display. If the variable is embedded in a running
message, the new value will be shown. The update
variable command will be sent to the display
address set by the DisplayAddress property.
DisplayAddress should be set before calling this
method.
Syntax
HRESULT UpdateVariableEx
(short nVariable, long nValue)
Parameters
nVariable
The variable number to update. Valid values are 0
... 99.
nValues
The new value for the variable. The display is
limited to 16-bit numbers, which can be signed or
unsigned.
Return Value
S_OK - Success
E_FAIL - Failure
Description
This method is used to update a variable in the
display. If the variable is embedded in a running
message, the new value will be shown. The update
variable command will be sent to the display
address set by the DisplayAddress property.
DisplayAddress should be set before calling this
method.
User's Manual 0300277-03 Rev. A
5-13
Need help?
Do you have a question about the Spectrum Controls 2706-P22-SC and is the answer not in the manual?