• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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