RFA .NET
Encodes a string into the raw format for this dataType.

Namespace: ThomsonReuters.RFA.Data
Assembly: RFA8_NET110_x64 (in RFA8_NET110_x64.dll) Version: 8.0.1.1

Syntax

C#
public void SetString(
	RFA_String value,
	byte dataType
)
Visual Basic
Public Sub SetString ( _
	value As RFA_String, _
	dataType As Byte _
)
Visual C++
public:
void SetString(
	RFA_String^ value, 
	unsigned char dataType
)
F#
member SetString : 
        value:RFA_String * 
        dataType:byte -> unit 

Parameters

value
Type: ThomsonReuters.RFA.Common..::..RFA_String
String to encode.
dataType
Type: System..::..Byte
The data type for which the string input should be encoded. Value belongs to DataBufferEnum. Invalid types includes DateTime, QualityOfServiceInfo and RespStatus.

Possible values are defined in DataBuffer..::..DataBufferEnum.

Remarks

CopyC#
SingleWriteIterator iter = new SingleWriteIterator();
RFA_String rfaString = new RFA_String();

iter.SetString( new RFA_String("-10", 4, false), DataBuffer.DataBufferEnum.Int );
iter.SetString( new RFA_String("+10", 4, false), DataBuffer.DataBufferEnum.Int );
iter.SetString( new RFA_String("100", 4, false), DataBuffer.DataBufferEnum.UInt );
iter.SetString( new RFA_String("-400000000", 11, false), DataBuffer.DataBufferEnum.Int );
iter.SetString( new RFA_String("+400000000", 11, false), DataBuffer.DataBufferEnum.UInt );
iter.SetString( new RFA_String("-40.00001", 10, false), DataBuffer.DataBufferEnum.Float );
iter.SetString( new RFA_String("+40000.006666", 14, false), DataBuffer.DataBufferEnum.Double );
iter.SetString( new RFA_String("-40.00001", 10, false), DataBuffer.DataBufferEnum.Real );
iter.SetString( new RFA_String("+40000.006666", 14, false), DataBuffer.DataBufferEnum.Real );
iter.SetString( new RFA_String("12/31/2009", 11, false), DataBuffer.DataBufferEnum.Date );
iter.SetString( new RFA_String("21:10:01:010", 13, false), DataBuffer.DataBufferEnum.Time );
iter.SetString( new RFA_String("83", 3, false), DataBuffer.DataBufferEnum.Enumeration );

rfaString.Append("\x22 Any string (can include binary characters (e.g. \x01))... \x22");
iter.SetString( rfaString, DataBuffer.DataBufferEnum.Buffer );
iter.SetString( rfaString, DataBuffer.DataBufferEnum.Opaque );

rfaString.Append("Any string...");
iter.SetString( rfaString, DataBuffer.DataBufferEnum.StringAscii );
iter.SetString( rfaString, DataBuffer.DataBufferEnum.StringUTF8 );
iter.SetString( rfaString, DataBuffer.DataBufferEnum.StringRMTES );

rfaString.Append("Any XML data...");
iter.SetString( rfaString, DataBuffer.DataBufferEnum.XML );

rfaString.Append("Any ANSI_Page data...");
iter.SetString( rfaString, DataBuffer.DataBufferEnum.ANSI_Page );

Exceptions

See Also