Results 1 to 2 of 2

Thread: What do you use to find the size of a byte array

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Posts
    7

    What do you use to find the size of a byte array

    What do you use to find the size of a byte array

  2. #2
    Fanatic Member Kaverin's Avatar
    Join Date
    Oct 2000
    Posts
    930
    you can do this:
    VB Code:
    1. 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
  •  



Click Here to Expand Forum to Full Width