ORD()

The ORD() operator returns the code point of a character in the current locale.

Syntax

ORD( source STRING )
  1. source is a string expression.

Usage

The value returned by ORD() is the code point in the current locale of the character passed as argument.

Only the first character of the argument is evaluated.

When using UTF-8, the ORD() operator returns the UNICODE code point of the character.

ORD returns NULL if the argument passed is not valid.

For ASCII characters, ORD() is the logical inverse of the ASCII() operator.