Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strng =strng & bite1 & bite2 doesnt work for me (binary) 1

Status
Not open for further replies.

smithles

Programmer
Jul 15, 2002
18
Hi.
where bite1, bite2 are dim as byte.
strng as string.

strng = strng & bite1 ' does not produce the desired concatenation, according to MsgBox Hex(strng)

the bit1 ..2 etc are binary value up to 255

I don't want to have to do it in C unless I have to.

strng can be several megabytes, but slow processing is ok.

Thanks in advance.

I am les smith
 
Thanks for the reply. I suppose I was dumb enough to assume that VB knew it was a single byte string and would have taken care of it for me. I will try asap. I have just realised that a multimegabyte array of type "Byte" would give me other added advantages. I will still have to restore the bytes into one string anyway, tho.
Les
 
Hi.
I grovel. You were of course correct.
Thankyou.
Les
 
I believe bytes are handled as 8-bit numbers and not character strings. I just guessed at converting a byte with Chr$, and got lucky.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top