Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Yegg on April 17, 2005, 12:36 PM

Title: Val() Question
Post by: Yegg on April 17, 2005, 12:36 PM
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?
Title: Re: Val() Question
Post by: R.a.B.B.i.T on April 17, 2005, 05:28 PM
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.
Title: Re: Val() Question
Post by: Yegg on April 18, 2005, 08:53 AM
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.