How much memory matrix needs?


Posted by Pasi Vartiainen on February 09, 2001 2:15 AM

I am using matrix to change certain text in one of the worksheets. Matrix has size of 300 * 2 eg. it's code in VBA is

dim matrix(300,1)

Is there limit how long text there can be inside matrix?

How does matrix reserves memery space, does it take longest item inside of it, or does it allocate space according items lenght?

I aks this, because if matrix starts to take memery in meg's, then i must come with different solutioin.



Posted by Dave Hawley on February 10, 2001 7:18 PM

Hi Pasi

See the following help items while in the VBE

Using Arrays
Array Function
Declaring Arrays
Understanding the Lifetime of Variables


....and also the "See also" of these topics.


Dave

OzGrid Business Applications