<< Click to Display Table of Contents >> Asc (function) |
Asc(Str)
Returns the character code of the first letter in a string according to the Unicode character table (UCS-2).
The result is an integer value between 0 and 32767.
See also: Chr
Example:
Sub Main
Dim i, Msg
For i = Asc("A") To Asc("Z")
Msg = Msg & Chr(i)
Next i
MsgBox Msg
End Sub