Promotic
WikipediaLinkedInYoutubeTwitterFacebook

LastErr - property of the PmaCommMsg object

Description:
Error number of the last communication message transfer.
Syntax:
Long LastErr
Note:
Property access for read and write.

Values see the onEndOfTransfer event of this object.

For getting the error text description of the last communication 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).

See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oCommMsg = pMe.Pm("/Comm/mr");
var nLastErr = oCommMsg.LastErr;
PROMOTIC 9.0.15 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice