Skip to main content

StateNo Method

Returns the digital state code for a specified string.

Definition​

Namespace: GHost.GSharp.PI.ACE
Assembly: GHost.GSharp.PI.ACE (in GHost.GSharp.PI.ACE.dll) Version: 1.2.44.3 (1.2.44.3)

C#

public int? StateNo(string state)

VB

Public Function StateNo (state As String) As Integer?

Parameters​

  String
String for a digital state.

Return Value​

Nullable(Int32)
Returns an integer corresponding to the digital state code for a specified string.

Remarks​

The digital state is obtained based on the digital state table for the point. If the digital state table does not contain a digital state with the corresponding string, the method returns null and raises an error. For non-digital points, the method always returns null and raises an error.

See Also​

Reference​

PIACEPoint Class
GHost.GSharp.PI.ACE Namespace