id | (Variant) Specifies the variable. The value is:
- Name (String, case sensitive text, for example "d1") or
- Index (Long, zero-based index) |
---|
oMsg.WriteVars("xy").Value = 5;
// or
oMsg.WriteVars(0).Value = 5;
var oData = pMe.Pm("/Data");
var oMsg = pMe.Pm("/Comm/mr1");
var iVar;
for (iVar = 0; iVar <= oData.Count; iVar++)
{
oMsg.WriteVars(iVar).Value = oData.Item(iVar).Value;
}