
-----------------------------------
tifg
Wed Dec 20, 2006 9:14 am

whats the vb equivalent of the cmd &quot;ord&quot; 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?

-----------------------------------
Silent Avenger
Wed Dec 20, 2006 5:55 pm


-----------------------------------
Try using this code:Private Sub Form_KeyPress(KeyAscii As Integer)
Form1.Caption = KeyAscii
End Sub
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.

-----------------------------------
Numbah51
Wed Dec 20, 2006 9:23 pm


-----------------------------------
asc()
putting the letter in quotes in the brackets would work
for example:
msgbox asc("k")

-----------------------------------
tifg
Wed Dec 20, 2006 10:02 pm


-----------------------------------
ooo tru!  asc() is EXACTLY what i was looking for.. thnx
