ReadUTF method

This method reads a UTF format string from the message starting with the byte referred to by DataOffset and returns it as an ActiveX string. The string in the message consists of a 2-byte length followed by the character data.

The method fails if MQMessage.DataLength is less than the string length when it is issued.

DataOffset is incremented by the string length and DataLength is decremented by the string length if the method succeeds.

Defined in:

MQMessage class

Syntax:
value$ = MQMessage.ReadUTF