|
-
Jan 25th, 2004, 08:32 AM
#1
Thread Starter
Member
Byte array to Integer conversion
Ok, I can do this by multipling up each byte from left to right but...
I have an byte array and I want to extract a 4-byte Integer value from it, e.g.
Dim Data() = {0,0,1,9} = 265 as an Integer
What I want is simply to turn that array into a Dim I as Integer = the value of that array of data.
Surely there is a simply way to convert this... since the data is in the actual format used by an Integer anyway!
In pratice the Integer data will be within an array somewhere however - i.e. it wont just be a 4 byte array like the above example.
Can't for the life of me see how to do this though...
Anyone care to....
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
|