|
-
Jul 4th, 2001, 04:22 PM
#1
Thread Starter
New Member
What do you use to find the size of a byte array
What do you use to find the size of a byte array
-
Jul 4th, 2001, 04:31 PM
#2
Fanatic Member
you can do this:
VB Code:
lngSize = Ubound(bytearray) - LBound(bytearray) + 1
That gives the total number of elements in the array, but for a byte array, it's also the size. Multiply that by the size of an element to get the size of another data type (except string, unless it's a fixed length string array).
I'm baaaack...
VB5 Professional Edition, VC++ 6
Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se
I feel special because I finally figured out how to loop midis: Post link
I'm a fanatic too 
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
|