Computer Science Canada whats the vb equivalent of the cmd "ord" in turing |
Author: | tifg [ Wed Dec 20, 2006 9:14 am ] |
Post subject: | whats the vb equivalent of the cmd "ord" in turing |
the ord statement in turing turns a letter into the corresponding number in the ASCII code... does any one kno if the same function exist for vb? |
Author: | Silent Avenger [ Wed Dec 20, 2006 5:55 pm ] | ||
Post subject: | |||
Try using this code:
Just run the program and start pushing keys and the code will appear in the caption of the form. Also note that some keys don't have a keyascii code. |
Author: | Numbah51 [ Wed Dec 20, 2006 9:23 pm ] |
Post subject: | |
asc() putting the letter in quotes in the brackets would work for example: msgbox asc("k") |
Author: | tifg [ Wed Dec 20, 2006 10:02 pm ] |
Post subject: | |
ooo tru! asc() is EXACTLY what i was looking for.. thnx |