Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 223
  • Last Modified:

Translate this code (Easy Points!)

SOME_CONSTANT_VARIABLE = 0x12

How do I do this in VB6, and why (ergo, what does the #x## mean?)?
0
DrDamnit
Asked:
DrDamnit
  • 3
  • 3
1 Solution
 
hesCommented:
Dim SOME_CONSTANT_VARIABLE
SOME_CONSTANT_VARIABLE = &h12
0
 
DrDamnitAuthor Commented:
what does the &h mean?
0
 
hesCommented:
That is how VB recognises the value is Hex 12
0x12 is how C recognises hex 12
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
DrDamnitAuthor Commented:
One last quick question: the &h + n, is that the hex number or the decimal number? Ergo, for 11 in hex, would it be &h11 or &B?
0
 
DrDamnitAuthor Commented:
sorry....&hB?
0
 
hesCommented:
&hB
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now