id | (Variant) Specifies the variable. The value is:
- Name (String, case sensitive text, for example "d1") or
- Index (Long, zero-based index) |
---|
var val = oMsg.ReadVars("xy").Value;
// or
val = oMsg.ReadVars(0).Value;
var oData = pMe.Pm("/Data");
// Path to the PmaData object
var oMsg = pMe.Pm("/Comm/mr1");
// Path to the PmaCommMsg object
var nVar = oMsg.GetVarCount(2);
// The number of variables on the "Data-received" tab
var iVar;
for (iVar = 0; iVar < nVar; iVar++)
{
oData.Item(iVar).Value = oMsg.ReadVars(iVar).Value;
}