Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27077

VS 2008 Problem with adding hex

$
0
0
Hi !
I have one hex, &H0 and in a loop i add &H1 to it, but i have a problem.After it comes to 9, there comes "A" and it gives a error:
Conversion from string "A" to type 'Integer' is not valid.

I add them like this:
Code:

'first i declared "myhextoadd" as a integer in public class form1 with value of &H0
myhextoadd = Hex(myhextoadd + &H1)

How to make it work ?

Viewing all articles
Browse latest Browse all 27077

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>