Asc
Returns the ASCII character code of the first character in a string.
Asc
Returns an Integer representing the character code of the first character of a string.
Syntax
Asc(string)
Parameters
| Parameter | Type | Description |
|---|---|---|
| string | String | A string expression. Only the first character is used. |
Return Value
Integer — the ASCII code of the first character.
Example
Print Asc("A") ' Output: 65
Print Asc("a") ' Output: 97