Background Group Question
David Burgun
dburgun at dsl.pipex.com
Wed Oct 12 05:16:23 EDT 2005
Hi,
I have a stack with two cards. There are 4 Common Background Groups
and one Group that is unique in each card. At startup I build a
look-up table (array) which uses the long name of each control as a
key. Once the stack is running the code looks up values for certain
fields and menu's using the long name of the current control to
access the table/array.
I use the following to build the table at startup:
repeat with myCardIndex = 1 to the number of cards in stack myStackLongName
repeat with myControl index = 1 to the number of controls in card
myCardIndex of stack myStackLongName
put the long name of control myControlIndex into myControlLongName
put GetControlData(myControlLongName) into myControlData
put myControlData into myControlArray[myControlLongName]
end repeat
end repeat
The problem with this is that for background I only get one entry
returned (the entry of the 1st card in the stack), so that the
following doesn't work when run from a card other than the 1st card:
put LookUpControl(the long name of me) into myControlData
How can I add the entries for background object on cards other than
the 1st card?
Thanks a lot
All the Best
Dave
More information about the use-livecode
mailing list