Point.State (property, read)

Syntax Point.State
Description Integer. To return the state of the point's value.
Comments Any of the following states may be returned.
State Description
CP_NORMAL Point is in Normal State
CP_ALARM_HIGH Point is in Alarm High State.
CP_ALARM_LOW Point is in Alarm Low State.
CP_WARNING_HIGH Point is in Warning High State.
CP_WARNING_LOW Point is in Warning Low State.
CP_ALARM Point is in Alarm State.
CP_WARNING Point is in Warning State.
CP_AVAILABLE Point has gone from Unavailable to Available.
CP_UNAVAILABLE Point is Unavailable
Example
' Increment the point value by one, if the point is unavailable,
' set it to 0.
sub main()
   Dim MyPoint as new Point
   MyPoint.Id = "TANK_LEVEL"
   MyPoint.Get
   if MyPoint.State = CP_UNAVAILABLE then
      MyPoint.SetValue = 0
   else
      MyPoint.SetValue = MyPoint.Value + 1
   end if
end sub
See Also Point.Get (method); Point.GetNext (method)