[futurebasic] Records (Part 1 - Booleans)

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

From: Bernie Wylde <bernie@...>
Date: Fri, 14 Dec 2001 19:20:37 +0000
Can someone help me out with this one?

I've created a true record which works fine.
The field gFn.fnTitle$(1 - n) is loaded with different lines of text.
The other fields are not currently assigned any value:

    begin record fnRec
        dim as str255 fnTitle$
        dim as int fnLocation
        dim as int fnCall[_maxInt]
    end record
    dim gFn(_maxInt) as fnRec


but, if I dim the last field (fnCall) as boolean, all the elements of
gFn.fnTitle$(1 - n) end up with the same text, (the last line of text
stored):

    begin record fnRec
        dim as str255 fnTitle$
        dim as int fnLocation
        dim as boolean fnCall[_maxInt]
    end record
    dim gFn(_maxInt) as fnRec



TIA
Bernie