[futurebasic] Re: [FB] Array of Records containing arrays of Records containing arrays

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2006 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Sat, 9 Dec 2006 10:02:40 -0700

> Aren't FB records limited to 32K?
I believe this is true but haven't confirmed it recently. However, I  
believe only the structure size itself is limited to 32k, the data in  
the structure can be much larger. Also, on a slightly tangential  
note, it might be possible to remove this limit at some future time  
when under the control of FBtoC.

> dim student(_numStudents) as Student

Instead of statically allocating an array based on some fixed amount  
(_numStudents), I've been very happy using dynamic arrays for my own  
structures. Students would appear to be a fluctuating number.

dynamic student(_maxLong) as Student   // only allocate what I need  
and allow it to grow

This works with all the record structures I use including records  
within records and static arrays within records.

Brian S.