Promotic

LastErr - property of the PmgTrendViewer object

Description:
Numeric code of the last risen error.
Syntax:
Long LastErr
Values:
0 - No error
30 - Wrong version. The version of the client and the server doesn't correspond to each other.
33 - Unknown error
35 - Error in drawing the Pmg object
60 - Connection error to the server, probably the oTrend.Connect call failed
61 - Server doesn't respond
62 - Server has no data that were asked for, it is necessary to check the address of requested data
66 - Processing the response from server failed
Note:
Property access for read only.
 
This property is not functional yet in Web panels
See also:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oTView = pMe.Items("../TrendView");
var nErr = oTView.LastErr;
if (nErr)
{
Pm.Debug(oTView.LastErrText);
}
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.