Byte array to string
- From: DaleB@xxxxxxxxxxxxxx
- Date: Tue, 06 May 2008 13:24:03 -0400
Relative newbie here using VB6 SP5.
Isn't there a faster way than looping through each element of a byte array to
extract a string? I seem to recall seeing a way to do it in one simple function
call but for the life of me I can't find it now. Or am I remembering wrong?
So if a byte array contained:
68 97 108 101 66
Instead of looping though concatenating CHR$(bytearray(loopcounter)) to get the
string "DaleB" (without the quotes of course) is there a built-in VB function to
just grab the whole string from the array in one gulp, something like
Namestring=ByteArray(), but that actually works! <g>
Thanks for your interest and help.
Dale
.
- Follow-Ups:
- Re: Byte array to string
- From: Jim Mack
- Re: Byte array to string
- Prev by Date: Re: the '#' character inside a string
- Next by Date: Re: Byte array to string
- Previous by thread: Listbox, Style = checkbox, but allow mulit selection
- Next by thread: Re: Byte array to string
- Index(es):
Relevant Pages
|