ASC Function

Returns the position of a character in the ASCII collating sequence.

Category: String
Returned data type: Integer

Syntax

ASC(string)

Arguments

string

a string that represents the character that needs to be found in the ASCII collating sequence; this can be specified as character constant, field name, or expression

Restriction: If multiple characters are specified only the first character is used.

Example

ascii_value = asc("a") // outputs 97

character_content = chr(97) // outputs the letter "a"