VBScript » Functions » Asc

Version: 1.0

Syntax:
Asc(String)

The Asc function returns the ANSI character code value for the first character in a string.

Examples

Code:
<% =Asc("abcde fghij klmno pqrst uvwxyz") %>
Output:
97
Explanation:

In these two examples, note that the ANSI value is returned only for the "a".

Language(s): VBScript
Code:
<% =Asc("a") %>
Output:
97
Language(s): VBScript

See Also: