CharacterSet property

Read-write. The MQMD CodedCharSetId.

Its initial value is the special value MQCCSI_Q_MGR.

If CharacterSet is set to MQCCSI_Q_MGR, the WriteString method does not perform code-page conversion.

For example:

msg.CharacterSet = MQCCSI_Q_MGR
msg.WriteString(chr$(n))

where 'n' is greater than or equal to zero and less than or equal to 255, results in a single byte of value of 'n' being written to the buffer.

Defined in: MQMessage class

Data Type: Long

Syntax:
To get: ccid& = MQMessage.CharacterSet

To set: MQMessage.CharacterSet = ccid&

Example

If you want the string written out in code page 437, issue:

Message.CharacterSet = 437
Message.WriteString ("string to be written")

Set the value you want in the CharacterSet before issuing any WriteString calls.