Previous Topic: Quoted StringsNext Topic: Picture Strings


Hex Strings

Use a hex string to find a string of hexadecimal digits. A hex string is a quoted string preceded or followed by the letter X. The string can contain only hexadecimal digits (0-9, A-F) and there must be an even number of digits.

Examples

This command finds hexadecimal 00:

Command ===> find x'00'

This command finds hexadecimal FFFF:

Command ===> f 'ffff'x

This command finds hexadecimal a1a2a3:

Command ===> f "a1a2a3"x

An error message is displayed whenever an invalid hex string is entered.

The following examples show invalid hex strings:

Command ===> find x'000'

(odd number of hex digits)

Command ===> find x'fm2b'

(not all characters are valid hexadecimal digits)