UNISEQ function

Syntax

UNISEQ (expression)

Description

Use the UNISEQ function to generate a Unicode value from expression.

The first character of expression is converted to its Unicode value, that is, a hexadecimal value in the range 0x0000 through 0x1FFFF. If expression is invalid, for example, an incomplete internal string, an empty string is returned. If expression evaluates to the null value, null is returned.

The UNISEQ function operates the same way whether NLS mode is enabled or not.

Note: UNISEQ does not map system delimiters. For example, UNISEQ("û") returns 251 (0x00FB), and UNISEQ(@TM) returns 63739 (0xF8FB). The Unicode value returned is the internal representation of the text mark character that is mapped to a unique area so that it is not confused with any other character. Note that this behaves differently from SEQ(@TM), which returns 251.