• Welcome to Valhalla Legends Archive.
 

Val() Question

Started by Yegg, April 17, 2005, 12:36 PM

Previous topic - Next topic

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?

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.

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.