Click or drag to resize

LayoutFieldSetData Method

Updates the internal character sequence of the index occurence of this field in message.

Namespace:  OBCOM.NetClient
Assembly:  OBCOM.NetClient (in OBCOM.NetClient.dll) Version: 40.82.5945.17884 (40.82.5945.17884)
Syntax
public void SetData(
	Message message,
	int index,
	string data
)

Parameters

message
Type: OBCOM.NetClientMessage
The message that will be updated.
index
Type: SystemInt32
The occurence index of the field.
data
Type: SystemString
the new data of this field.
Exceptions
ExceptionCondition
IndexOutOfRangeException If index is out of bounds.
ArgumentException If strict and data is too long.
Remarks

The character sequence starts at the offset position returned by the GetOffset method, and it's length is given by the Length property.

If the value of data is too short, it is extended with space characters. If the value of data is too long, it is truncated. If data is null the sequence is filled with NO-DATA (0x1A).

See Also