![]() |
Strings
Does anyone know if there is a large overhead in declaring a variable
length string (which could hold up to 2^31 characters) over a fixed length string? I assume the memory gets allocated on the fly as 2^31 bytes = 2 GIG, and I only have half a gig of memory. I need to declare some pretty huge arrays of strings and need to know up front if I am going to run out of memory or not I appreciate I'd have to implement my own terminator and length function like in C. My strings will typically be 16 characters long, but could go up to say 35 characters long -- Mike |
Strings
On Sun, 12 Jun 2005 11:33:54 +0100, Mike NG wrote:
Does anyone know if there is a large overhead in declaring a variable length string (which could hold up to 2^31 characters) over a fixed length string? I assume the memory gets allocated on the fly as 2^31 bytes = 2 GIG, and I only have half a gig of memory. I need to declare some pretty huge arrays of strings and need to know up front if I am going to run out of memory or not I appreciate I'd have to implement my own terminator and length function like in C. My strings will typically be 16 characters long, but could go up to say 35 characters long From the description of data types in HELP for VBA, it looks as if there is an overhead of 10 bytes/string for variable length strings. --ron |
Strings
On Sun, 12 Jun 2005 at 07:26:08, Ron Rosenfeld (Ron Rosenfeld
) wrote: From the description of data types in HELP for VBA, it looks as if there is an overhead of 10 bytes/string for variable length strings. Thanks for that - I just looked at help for string and it didn't mention the overhead -- Mike |
All times are GMT +1. The time now is 12:24 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com