ASC( ) Function

Example   See Also

Returns the ANSI value for the leftmost character in a character expression.

Syntax

ASC(cExpression)

Returns

Numeric

Arguments

cExpression

Specifies the character expression containing the character whose ANSI value ASC( ) returns. Any characters after the first character in cExpression are ignored by ASC( ).

Remarks

ASC( ) returns the position of the character in the character table of the current code page. Every character has a unique ANSI value in the range from 0 to 255.