ReadVars - method of the PmaCommMsg object
Description:
The method enables an access to object of the
PmVar type that represents one variable defined on the "
Data-received" tab.
Syntax:
Object ReadVars(Variant id)
Parameters:
id | (Variant) Specifies the variable. The value is: - Name (String, case sensitive text, for example "d1") or - Index (Long, zero-based index) |
---|
Note:
The PmVar object contains information about the variable (value, name, index, etc.).
If the variable doesn't exist, then error value (null for JavaScript or Nothing pro VBScript) is returned..
Example1:
JavaScriptVBScriptSelect and copy to clipboard
var val = oMsg.ReadVars("xy").Value;
//or
val = oMsg.ReadVars(0).Value;
Dim val
val = oMsg.ReadVars("xy").Value
'or
val = oMsg.ReadVars(0).Value