Solved

Translate this code (Easy Points!)

Posted on 2006-10-25
6
167 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now