What do you use to find the size of a byte array
Printable View
What do you use to find the size of a byte array
you can do this:
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).VB Code:
lngSize = Ubound(bytearray) - LBound(bytearray) + 1