Function CharacterNumber(text)

CharacterNumber

The function CharacterNumber returns the character number of the first character in a string. It returns 0 for the empty string.

CharacterNumber(
     text            ! (input) a scalar string expression
     )

Arguments

text

The string for which you want to have the value of the first character.

Return Value

The function CharacterNumber returns a value in the range { 0 .. 65535 }.

See also

The function Character.