[futurebasic] Re: [FB] Dynamic Array

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

From: gnome <gnome@...>
Date: Thu, 28 Mar 2002 21:24:33 +0100
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