Bit and character encoding functions provide a set of tools for discovering and manipulating data at the level of bits, bytes, and character encoding.

Function Description

ASCII( )

Returns the ASCII code for a specified character.

BIT( )

Returns the binary representation for the specified byte position in the current record as an eight character string.

BYTE( )

Returns the character stored in the specified byte position in the current record.

CHR( )

Returns the character associated with the specified ASCII code.

DBYTE( )

Returns the Unicode character located at the specified byte position in a record.

DHEX( )

Converts a Unicode string to a hexadecimal string.

DIGIT( )

Returns the upper or lower digit of a specified Packed data type byte.

HEX( )

Converts an ASCII string to a hexadecimal string.

HTOU( )

Converts a hexadecimal string to a Unicode string. Abbreviation for "Hexadecimal to Unicode".

MASK( )

Performs a bitwise AND operation on the first bytes of two character strings.

SHIFT( )

Returns a single character string with the bits in the first character of the input value shifted to the left or right.