#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default 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
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 87
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
find and replace numeric strings in larger text strings Mr Molio Excel Worksheet Functions 8 November 9th 11 05:17 PM
How to find number of pairs of strings from list of strings? greg_overholt Excel Worksheet Functions 5 January 27th 06 10:42 PM
How can I count strings within strings Paul W Excel Worksheet Functions 4 June 14th 05 12:39 PM
Finding strings within strings Rod[_6_] Excel Programming 1 December 2nd 03 05:34 PM
Finding strings within strings Rod[_6_] Excel Programming 1 December 2nd 03 05:19 PM


All times are GMT +1. The time now is 10:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"