Promotic

GetStateColor - method of the PmgAlarmStateViewer object

Description:
Returns the color of the required alarm state.
Syntax:
String GetStateColor(Long nState)
Return value:
Returns the color of the required alarm state as RGB String in the form "#RRGGBB".

If an error occures, then the method returns: null for JavaScript or Empty for VBScript (it can be tested by the Pm.IsValid method).
Note:
This method is also functional in Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oViewer = pMe.Items("/Viewer");
var sColor3 = oViewer.GetStateColor(3);

History:
Pm9.00.14: Created
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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