|
-
Aug 28th, 2015, 12:00 PM
#5
Re: Best way to empty an element of a multidimensional array.
For variable length Strings specifically....
The array item (index) uses 4 bytes, regardless of the size of the string. But that index is just a pointer to the actual string data. That string data can contain 0 to n bytes worth of characters. Therefore, setting a string to "" uses 6 bytes for the string. Setting it to vbNullString uses zero bytes for the string. Setting strings to vbNullString is better than ""
Tags for this Thread
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
|