|
-
Apr 18th, 2008, 10:34 PM
#1
Thread Starter
Junior Member
string to byte help needed...
I am having trouble converting a string to byte(in hex)...below is what I'm trying to acheive...
Dim myByteArr(10) As Byte
Text file is of the form:
1011 21FF FF00 00FF
So I'd like to achieve:
myByteArr(0) = 10
myByteArr(1) = 11
myByteArr(2) = 21
myByteArr(3) = FF
myByteArr(4) = FF
myByteArr(5) = 00
so on...
I need to read each line in the text file which looks like shown above and
split the bytes and assign it like shown above, but I'm getting a type conversion error, How is it possible to achieve what I am desiring...pls help...thnks...in advance................
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
|