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