+1 Hex character

  • Thread starter Thread starter pmclinn
  • Start date Start date
P

pmclinn

If I want to increment a number plus one hex like this:

5f

+1 hex

60

or

60

+1

61

How would I do this programmatically?
 
Hi,

Dim x As Integer = CInt("&H5F")
Dim y As Integer = x + 1

Me.Text = y.ToString("x")

Ken
 
pmclinn said:
If I want to increment a number plus one hex like this:

5f

+1 hex

60

\\\
Dim i As Integer = Convert.ToInt32("5f", 16)
i += 1
MsgBox(Hex(i))
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top