Re: "space" in hex?
- From: "Larry Serflaten" <serflaten@xxxxxxxxxxxxxx>
- Date: Wed, 27 Jun 2007 07:15:03 -0500
"dalz via VBMonster.com" <u35059@uwe> wrote
I must convert this text to hex so it can be store to the card
Then when the card is read by the reader it must return the same result =
abcd defg
Try to remember that it matters little how you display the data, the
bottom line is that you are always working with numbers. Whether
you want them displayed as characters, hexidecimal, or decimal values,
they are just numbers.
But what happening is:
input text = abcd defg
result in hex = 61 62 63 64 20 64 65 66 67
convert it again to string = abcdAIKM'
how to read the "space"??
Without knowing what code you are using, the mistake can't be known,
but I'd wager the problem is with your conversion code from hex to
characters. It is fairly simple to display all three:
Dim b() As Byte
Dim i As Long
b = "abcd efgh"
For i = 0 To 17
Debug.Print i, b(i), Hex(b(i)), Chr(b(i))
Next
Debug.Print b
What does your conversion code look like?
LFS
.
- Follow-Ups:
- Re: "space" in hex?
- From: dalz via VBMonster.com
- Re: "space" in hex?
- References:
- "space" in hex?
- From: dalz via VBMonster.com
- "space" in hex?
- Prev by Date: Re: "space" in hex?
- Next by Date: Best way to determine installed version of MS Office
- Previous by thread: Re: "space" in hex?
- Next by thread: Re: "space" in hex?
- Index(es):
Loading