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).
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oViewer = pMe.Items("/Viewer");
var sColor3 = oViewer.GetStateColor(3);
Dim oViewer
Set oViewer = pMe.Items("/Viewer")
Dim sColor3
sColor3 = oViewer.GetStateColor(3)