Solved

Translate this code (Easy Points!)

Posted on 2006-10-25
6
187 Views
Last Modified: 2010-05-18
SOME_CONSTANT_VARIABLE = 0x12

How do I do this in VB6, and why (ergo, what does the #x## mean?)?
0
Comment
Question by:DrDamnit
  • 3
  • 3
6 Comments
 
LVL 20

Expert Comment

by:hes
ID: 17807458
Dim SOME_CONSTANT_VARIABLE
SOME_CONSTANT_VARIABLE = &h12
0
 
LVL 32

Author Comment

by:DrDamnit
ID: 17807502
what does the &h mean?
0
 
LVL 20

Accepted Solution

by:
hes earned 500 total points
ID: 17807534
That is how VB recognises the value is Hex 12
0x12 is how C recognises hex 12
0
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
LVL 32

Author Comment

by:DrDamnit
ID: 17807722
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
 
LVL 32

Author Comment

by:DrDamnit
ID: 17807723
sorry....&hB?
0
 
LVL 20

Expert Comment

by:hes
ID: 17807900
&hB
0

Featured Post

ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question