Visual Basic Hex conversion
From: JWH3535 (JWH3535_at_discussions.microsoft.com)
Date: 02/25/05
- Next message: Bob Butler: "Re: .net 2003 install package - how to direct dlls to correct dir ?"
- Previous message: scott: ".net 2003 install package - how to direct dlls to correct dir ?"
- Next in thread: Bob Butler: "Re: Visual Basic Hex conversion"
- Reply: Bob Butler: "Re: Visual Basic Hex conversion"
- Reply: JWH3535: "RE: Visual Basic Hex conversion"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 25 Feb 2005 07:17:02 -0800
I am getting hex numbers in from an RS-232 source and coverting them to store
in a database. The numbers are 4 bytes long, but often have non-zero values
in the rightmost 2 bytes. Is there any standard coversion method that gets
around the following anomoly?
?hex(32768)
8000
?&H8000
-32768
?&H00008000
-32768
I have to check for this bit set and subtract it. Do the conversion and add
32768 back in.
Best regards,
John
- Next message: Bob Butler: "Re: .net 2003 install package - how to direct dlls to correct dir ?"
- Previous message: scott: ".net 2003 install package - how to direct dlls to correct dir ?"
- Next in thread: Bob Butler: "Re: Visual Basic Hex conversion"
- Reply: Bob Butler: "Re: Visual Basic Hex conversion"
- Reply: JWH3535: "RE: Visual Basic Hex conversion"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|