Click or drag to resize

LayoutFieldGetInteger Method

Returns the integer value of the index occurence of field in message.

Namespace:  OBCOM.NetClient
Assembly:  OBCOM.NetClient (in OBCOM.NetClient.dll) Version: 40.82.5945.17884 (40.82.5945.17884)
Syntax
public virtual int GetInteger(
	Message message,
	int index
)

Parameters

message
Type: OBCOM.NetClientMessage
The message that will be read.
index
Type: SystemInt32
The occurence index of the field.

Return Value

Type: Int32
The integer value of Field(index) in message.
Exceptions
ExceptionCondition
IndexOutOfRangeException If index is out of bounds.
NotSupportedException If the field's type is not NUMERIC or SIGNED.
Remarks

This method can only be applied to fields of type NUMERIC or SIGNED.

This is an utility method that converts the number returned by the GetNumber(Message, Int32) method to an integer.

See Also