Asc Function

Language Items List

Definition:

Returns the numeric ANSI code value for the first character in the supplied string expression.

Syntax:

Asc(strexpr)


Syntax Description


strexpr Any string expression

Details:

For example, B% = Asc("Complete") would place the ANSI code value of C, which is 67, in the variable B%.

See Also:

Chr, Chr$ Functions

ANSI Character Set

Example:

Asc(
A) = 65