WriteString method

This method takes an ActiveX string and writes it into the Message Data buffer starting at the byte referred to by DataOffset. It replaces any data already at these positions in the buffer, and will extend the length of the buffer (MQMessage.MessageLength) if necessary.

DataOffset is incremented by the length of the string in bytes if the method succeeds.

The method converts characters into the code page specified by the MQMessage.CharacterSet property.

Defined in: MQMessage class

Syntax:
Call MQMessage.WriteString(value$)

Parameter value$ String. Value to be written.