Asked By
anonymous
7060 points
N/A
Posted on - 04/07/2012
How can I print the asc key values of all the characters, small (lower case) and big (upper case) on my form?
Print ASC key values of all alphabets
private sub cmdload _click()
Dim i as integer
for i = asc ( “A” ) to asc ( “Z” )
Print chr(i) + “=“ + i +” “
next
print “”;
for i = asc ( “a“ ) to asc ( “ z” )
Print chr(i) + “=“ + i +” “
next
end sub
the entire program is about printing in the format A=65 B=66 and so on the program first prints from A to Z and then from a to z,. This is a simple programming concept provided that you know the usage of the functions ASC(string) and CHR(int). the program is robust in its performance.
The program takes two loops one for printing the asc keys of A to Z in capitals and the other for printing a to z for printing in small case. The asc keys must match the asc keys assigned to by the system. This is not at all equal to the Unicode. Here Asc key means 256 symbols, among which only 26*2 are being printed.
Thanks.
Please write a review.