contents.gifindex.gifprev1.gifnext1.gif

Asc

Purpose

Returns a numeric value that is the ANSI code for the first character in a string expression.

Arguments

Asc( stringexpression )

Notes

If the stringexpression argument is a zero-length String or a Null Variant (VarType 1), a run-time error will occur.

Example

This example returns 65, the ANSI character code for an uppercase letter A.

ANSIcode = Asc( "A" )