[futurebasic] Re: [FB] Dynamic Array

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2002 : Group Archive : Group : All Groups

From: barrie <barrie@...>
Date: Thu, 28 Mar 2002 16:12:42 -0400
> 
> Le jeudi 28 mars 2002, à 08:13 , barrie a écrit :
> 
>> DIM DYNAMIC gGroupnote$(1000)
>> DIM DYNAMIC gGroupData$(1000,100000)
>> DIM DYNAMIC gGroupDataCount&(1000)
>> 
>> I didn't see that string or 2D DYNAMIC arrays were illegal.
> 
> i don't think that they are but...
> a string is 256 bytes, unles you have typed it somewhere else.
> so DIM DYNAMIC gGroupData$(1000,100000)
> is 1000 x100000 x256 bytes
> approx: 25 600 000 000
> now that looks like a lot, if i do a quick 1000 b = 1K
> then i get 25 600 000 K approx 25 600 M approx 25 G.
> are you sure that you have that much memory to allocate?
> if not i can understand the compiler whining a little...
> 
> :-j
> 
> 
> --
> To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>
> 
Thank you. You are quite right. This is the first time I have used Dynamic
arrays and I didn't even think to calculate the allocation because I thought
it was a theoretical number. Now I understand.
Many thanks again
Barrie