LastTextErr - property of the PmaCommMsg object
Description:
Text error description of last message transfer.
Syntax:
String LastTextErr
Note:
Property access for
read only.
The property can be used, for example, in communication alarms if an error occurs during the transfer. The
LastErr property serves for getting the error number of the last message transfer. 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 sLastErr = oCommMsg.LastTextErr;
Dim oCommMsg
Set oCommMsg = pMe.Pm("/Comm/mr")
Dim sLastErr
sLastErr = oCommMsg.LastTextErr