Click here to Skip to main content
15,888,816 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Is there any control for hyper-text besides IE? Pin
FruitBatInShades16-Feb-03 11:34
FruitBatInShades16-Feb-03 11:34 
GeneralIcon full quality issue Pin
NicoVB14-Feb-03 8:50
NicoVB14-Feb-03 8:50 
GeneralRe: Icon full quality issue Pin
Jeremy Falcon19-Feb-03 7:34
professionalJeremy Falcon19-Feb-03 7:34 
GeneralRe: Icon full quality issue Pin
NicoVB19-Feb-03 7:56
NicoVB19-Feb-03 7:56 
GeneralRe: Icon full quality issue Pin
NicoVB23-Feb-03 5:30
NicoVB23-Feb-03 5:30 
General2 ques regarding hexadecimal numbers Pin
r i s h a b h s14-Feb-03 0:58
r i s h a b h s14-Feb-03 0:58 
GeneralRe: 2 ques regarding hexadecimal numbers Pin
Richard Deeming14-Feb-03 6:52
mveRichard Deeming14-Feb-03 6:52 
GeneralRe: 2 ques regarding hexadecimal numbers Pin
Richard Deeming16-Feb-03 23:50
mveRichard Deeming16-Feb-03 23:50 
rishabhs wrote:
thanx for ur reply Richard! [rose]
but the code u gave me doesn't returns all the numbers which r added to get the number &H10C0

plz. help me understand the logic of this job


I fixed a typo in my previous post, which should give you the correct result. [You need sum = sum + Hex(i), not sum = sum + Hex(number). Blush | :O ]

The code walks through each binary bit of the number, and tests to see if that bit is set, using the bitwise And operator. [0 <> (number And i)]. If the bit is set, it appends the hex representation of the bit to a string.
0x10C0 = 0001 0000 1100 0000
 
       = 0000 0000 0100 0000
       + 0000 0000 1000 0000
       + 0001 0000 0000 0000
 
       = 0x0040
       + 0x0080
       + 0x1000



"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
GeneralRe: 2 ques regarding hexadecimal numbers Pin
r i s h a b h s17-Feb-03 17:03
r i s h a b h s17-Feb-03 17:03 
GeneralWave Pedal Pin
syedhassan413-Feb-03 23:20
syedhassan413-Feb-03 23:20 
GeneralVB Pin
Ebin13-Feb-03 17:05
Ebin13-Feb-03 17:05 
QuestionHow do i code an animated (gif) button in vb.NET? Pin
qsdnj13-Feb-03 7:10
qsdnj13-Feb-03 7:10 
AnswerRe: How do i code an animated (gif) button in vb.NET? Pin
RZLR18-Feb-03 0:22
RZLR18-Feb-03 0:22 
Generalpowerpoint automation Pin
pnpfriend13-Feb-03 5:14
pnpfriend13-Feb-03 5:14 
GeneralMSHFlexGrid Pin
Andy H12-Feb-03 11:28
Andy H12-Feb-03 11:28 
GeneralRe: MSHFlexGrid Pin
Andy H12-Feb-03 12:19
Andy H12-Feb-03 12:19 
Generaldisabling a row in a datagrid Pin
mcm12-Feb-03 5:40
mcm12-Feb-03 5:40 
Generalchecking for a numeric value in a loop Pin
mcm12-Feb-03 1:01
mcm12-Feb-03 1:01 
GeneralRe: checking for a numeric value in a loop Pin
xBlitzerx12-Feb-03 4:21
xBlitzerx12-Feb-03 4:21 
QuestionHow To Show MDI Form in ActiveXDll.OCX Pin
Uttam Kumar Unik!11-Feb-03 22:29
Uttam Kumar Unik!11-Feb-03 22:29 
AnswerRe: How To Show MDI Form in ActiveXDll.OCX Pin
Ray Cassick13-Feb-03 3:17
Ray Cassick13-Feb-03 3:17 
GeneralRe: How To Show MDI Form in ActiveXDll.OCX Pin
Uttam Kumar Unik!13-Feb-03 23:22
Uttam Kumar Unik!13-Feb-03 23:22 
GeneralRe: How To Show MDI Form in ActiveXDll.OCX Pin
Ray Cassick14-Feb-03 7:39
Ray Cassick14-Feb-03 7:39 
AnswerRe: How To Show MDI Form in ActiveXDll.OCX Pin
Tony Stark18-Feb-03 3:19
Tony Stark18-Feb-03 3:19 
General"Back" and "Forward" button functionality Pin
Vidvan11-Feb-03 10:50
Vidvan11-Feb-03 10:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.