MessageIdHex property

Read-write. The MessageId to be included in the MQMD of a message when put on a queue, also the MessageId to be matched against when getting a message from a queue.

Every two characters of the string represent the hexadecimal equivalent of a single ASCII character. For example, the pair of characters "6" and "1" represent the single character "A", the pair of characters "6" and "2" represent the single character "B", and so on.

You must supply 48 valid hexadecimal characters.

Its initial value is "0...0".

Defined in: MQMessage class

Data Type: String of 48 hexadecimal characters representing 24 ASCII characters

Syntax:
To get: messageidh$ = MQMessage.MessageIdHex

To set: MQMessage.MessageIdHex = messageidh$

Note:
See Message Descriptor properties for a discussion of when use MessageIdHex in place of the MessageId property.