|
-
May 11th, 2007, 06:25 AM
#1
Thread Starter
Member
[RESOLVED]Converting a string to byte array and back
I need something to convert a string into a byte array and back. I've tried:
bytData() = strData
bytData() = StrConv(strData, vbFromUnicode)
The problem is, there are all these 0 value bytes in between each byte. I have tried reading every second byte, but that doesn't always work when converting it back, after modifying it that is. I need this because it is a lot faster than doing this looped 50000 times:
strData = strData & CTbl(Temp)
I need a way to speed up my loop, because the code above can take several seconds to complete, and that array takes about 50 milliseconds, if only I can get the byte array right.
Last edited by evan29; May 11th, 2007 at 07:09 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|