ASC Function

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

Category: String
Returned data type: Integer

Syntax

ASC(string)

Required Argument

string

specifies 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.

Details

See Appendix A: ASCII Values for a complete list of ASCII values.

Example

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