Click or drag to resize

MessageGetChar Method (String, Int32)

Returns the first character of the value of the field identified by fieldName and index.

Namespace:  OBCOM.NetClient
Assembly:  OBCOM.NetClient (in OBCOM.NetClient.dll) Version: 40.82.5945.17884 (40.82.5945.17884)
Syntax
public char GetChar(
	string fieldName,
	int index
)

Parameters

fieldName
Type: SystemString
The name of the field.
index
Type: SystemInt32
The occurence index of the field.

Return Value

Type: Char
The first character of the value of the field identified by fieldName and index. It returns null if the string data starts with the special character NO-DATA (0x1A).
Exceptions
ExceptionCondition
InvalidOperationException If the Message has no Layout, or if the required field is not defined in the Layout of the Message.
IndexOutOfRangeException If index is less than "0" (zero) or greater-equal to the number of occurrences of the field, as indicated by the Occurs property.
Remarks
If the value of the field is NULL it returns the SPACE character (see IsNull for more details).
See Also