If i'm understanding what you mean, I think this might still be the way to go.
Setup your main array to hold all the sub information say, theArray
Insert a key for each page
theArray["firstPage"]
You said, the elements are incremented for the number of image map areas, so theArray["firstPage"] could contain sub keys 1,2,3,4,5 etc for the number of image map areas. This way you could end up with something like
Code: Select all
put "This is the data for the first image map area of my first page" into theArray["firstPage"][1]
If you had 5 image map areas for page firstPage you'd just put the data for each area into theArray["firstPage"][x] where x = 1 to 5. Need to add another page? Same exact thing.
theArray["secondPage"][1] would store the image map data for the first image map area of page 2.
Doing it similarly to your method before, could name the page keys as page# (page1 page2..)
To insert a page later, you can
Code: Select all
get the number of lines in the keys of theArray
Increment it by 1, and insert your new page key.
The nice thing about the multidimentional arrays is you can also create arrays like
theArray["page1"]["maps"][1]
theArray["page1"]["header"]
theArray["page1"["CSS"]
If you want to have changeable headers for a single page, break it down further with [1] being the first header etc. Can store different css code.. well all kinds of things.
Having said all this, I think there is another option. You could store all this information in list fields or tables on a background card.
At that point you can have a single global variable declared, and load it from the table with the needed information. Or just ignore declaring globals and grab what you need from your hidden list boxes.
magice wrote:Actually, that in no help. Each of the arrays are already multidimensional. Essentially what I am doing is creating an array that can be used to generate an html document with and image map using repeat loops. Each array represents all the data for one document. The elements are incremented for the number of image map areas to create within the document, and their child elements hold the data for each image map area. The final output will be several linked html documents. So' unfortunately the only way I can see to do it is to create a separate array for each document. I can declare each of them as global upon creation, but I am having trouble with recalling them later in another script. That is where my failing repeat loop comes in.