ASC(theString as String)
Description
Returns an integer with the ASCII number for the leftmost character of theString. Will be in range 0-255.
Example
Dim s as String
Dim i as Integer
s="a"
i=Asc(s) 'i would have a value of 97
or
Dim s as String
Dim i(5) as Integer
Dim j as Integer
s="Hello"
for i=1 to 5
i(j)=Asc(Mid(s,i,1))
next
This will put theASCII numeric values for "Hello" into the array "i" as follows
i(1)=72 'ASCII value for 'H'
i(2)=101 'ASCII value for 'e'
etc. for i(3),i(4), and i(5)