Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I think the forum is a great idea, especially for those of us in consulting engineering. Keep up the good work!..."

Geography

Where in the world do Tek-Tips members come from?

strng =strng & bite1 & bite2 doesnt work for me (binary)Helpful Member! 

smithles (Programmer)
31 May 06 1:38
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
Helpful Member!  trollacious (Programmer)
31 May 06 2:49
Have you tried:

CODE

strng = strng & Chr$(bite1)

Lee



smithles (Programmer)
31 May 06 6:26
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
smithles (Programmer)
31 May 06 6:34
Hi.
I grovel.  You were of course correct.
Thankyou.
Les
trollacious (Programmer)
31 May 06 13:17
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

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close