Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetStateColor - method of the PmgAlarmStateViewer object

Description:
Returns the color of the required alarm state.
Syntax:
String GetStateColor(Long nState)
Return values:
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 pro 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.17 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