LastErr - property of the PmaCommGroup object
Description:
Error number of the last message transfer.
Note:
Property access
for read and write.
For values see the description of the
PmaCommMsg.onEndOfTransfer event.
For obtaining the error text description of the last message transfer serves the
LastTextErr property of this object.
Cumulative error count can be detected by the
PmaCommGroup.GetCount or
PmaComm.GetCount methods (it is usefull when detecting communication problems).
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oCommGroup = pMe.Pm("/Comm/Group1");
var nLastErr = oCommGroup.LastErr;
Dim oCommGroup
Set oCommGroup = pMe.Pm("/Comm/Group1")
Dim nLastErr
nLastErr = oCommGroup.LastErr