[futurebasic] Re: [FB] [FB2] XREF Array of Records (lengthy)

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 1999 : Group Archive : Group : All Groups

From: Sean -G3- <mclaugh@...>
Date: Wed, 20 Oct 99 22:38:48 -0500
>Sean -G3-, are you sure about the XREF bug ?? cause I use record 0 in a
>XREFed array to track how many elements I have in a XREFed array

Pete,

Just FYI, I'm not "Generation 3" or anything, I'm on a PowerMac G3 
beiege. :+)

Here is the information I have about the bug:
'Here we use a bit of a workaround: when FB finds an XREF@ for a RECORD 
array,
'it sets aside one RECORD, rather than a long integer, to hold the base 
of the
'array (the handle).  This will probably be fixed in an update, but for 
now the
'workaround works. (Hmmm, is that redundant?)  The workaround requires 
that
'when assigning or examining the base of the XREF@ array, you treat the 
array
'base as a record starting with a long integer, whose offset is zero (Top 
is used
'in the example below).

It uses record 0. dynamicArray.top& will give the size of the record, I 
beleive.

Does this sound correct? Mabye this bug has already been fixed.