Visual Basic Hex conversion

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: JWH3535 (JWH3535_at_discussions.microsoft.com)
Date: 02/25/05


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



Relevant Pages

  • Re: Visual Basic Hex conversion
    ... > I am getting hex numbers in from an RS-232 source and coverting them ... > to store in a database. ... forces VB to store it in 32 bits instead. ...
    (microsoft.public.vb.general.discussion)
  • Re: utf-8 encoding different forms?
    ... Is there a standard translation I could use? ... If a create a file with hex ... fc in the name, and store the name in a database, the webserver chokes, ...
    (comp.lang.tcl)
  • Re: public and private mailboxes randomly dismounting
    ... When posting logs an important piece is the Event ID and Source. ... Information Store First Storage Group: An attempt to move the file ... An error occurred while writing to the database log file of storage group ...
    (microsoft.public.windows.server.sbs)
  • Re: cant mount information store
    ... I then reinstalled exchange and then installed exchange 2003 ... Information Store First Storage Group: Database recovery failed ... Microsoft Exchange Information Store. ...
    (microsoft.public.windows.server.sbs)
  • Re: Many Exchange errors!
    ... Event Source: ESE ... Information Store First Storage Group: An attempt to move the file ... An error occurred while writing to the database log file of storage group ...
    (microsoft.public.windows.server.sbs)