OK thanks There will be a maximum of 16 passes through the loop, with a maximum of 14 arrays declared on each pass. each array could have between 1 and a couple of hundred elements. it depends on the size of the original document, from where all the original data is imported. each one of the 14 arrays will be the same size, to be displayed in a listbox The final code will be compiled. BTW this is v13 MAC Yosemite Ill give it a try thanks again -pm
On Tue, Oct 31, 2017 at 7:29 PM, Peter Mew <[email protected]> wrote: > Hi > I want to achieve the following: > To Loop through a block of code (the number of times will be determined > elsewhere, but may well be different each time). > Create a set of arrays that will have the same name + the loop counter, > for each pass through the loop > So pass 1 might create 3 arrays called Array101 Array201 Array301 > pass 2 would create arrays called Array102 Array202 Array302 > and so on > the arrays would be filled with data by the code in the loop > > I then want to be able to reference these arrays, to retreive the data in > the arrays according the loop number that created them > So I might want to get the data for pass 2, from Array102 Array202 > Array302, and display it elsewhere. > > Im pretty sure I need to use pointers to accomplish this, but I dont know > how. > Could someone point (sic) me in the right direction > > Thanks > -pm > > > ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

