[futurebasic] Re: [FB] Records (Part 1 - Booleans)

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

From: jktr <jktr@...>
Date: Sat, 15 Dec 01 09:12:54 -0600
>dynamic gFnCall(_maxInt, _maxInt) as boolean
>
Bernie,

You will still have a problem with this code, because dynamic arrays are 
dynamic in only the first dimension. That means if you assign a value to 
gFnCall(0,0), your array will already have 32,768 bytes. Use 
gFnCall(9,6), and the size of your array zooms to 3,276,800 bytes. 

Do you really need completely unbounded sizes here? If so, you need to 
use a dynamic array of handles. If you want, I can show you how to swap 
handles in a dynamic array, so you don't have to manage the handles 
yourself, but 2-dimensional arrays with _maxInt in the last size param 
are almost never wise.

I will send you backchannel my Dynamic XREF@ demo, that demonstrates how 
to do this easily. It may take a little work to understand, but it will 
do what you want.

 @"@
 =J= a  y
  "