Asc()

Top  Previous  Next

Asc() - Returns ANSI Character Code

Description

The Asc() function returns the ANSI character code for the first letter of the string provided.

Integer = Asc(String)

Returns Integer

Example

Dim chrCode
 
chrCode = Asc("A") 'result = 65
chrCode = Asc("B") 'result = 66
chrCode = Asc("C") 'result = 67