Valhalla Legends Forums Archive | Visual Basic Programming | Val() Question

AuthorMessageTime
Yegg
When Val() is returning data, does it read x as a character of the alphabet? Or is x read as part of the integer(s), like 0x1E. The 'e' would be part of the intergers and not a character of its own?
April 17, 2005, 5:36 PM
R.a.B.B.i.T
0x1E would need to be in quotes, or else it would be invalid.  Visual BASIC uses &H?? to show hex, so VB would be &H1E.
April 17, 2005, 10:28 PM
Yegg
Ok, thanks rabbit. I just got a little but used to saying 0x with the Val() function. I created my own Val() function in Python which works just like the one in VB6, I just wasn't sure about that one thing. Thanks again.
April 18, 2005, 1:53 PM

Search