Peter,

IF your code will never be compiled the first code I sent will work, 
and you will be creating arrays 'on the fly', if you do this, I suggest 
you create local arrays, array names starting with a '$', so that they 
are thrown away at the end of the process/method.

IF you code will EVER be compiled, trying to create them on the fly 
will create 'issues'.
You can try using the listbox solution posted by Keith, or you can 
simply create a bunch of arrays and keep them around.

Then you can do what both Keith, and I showed you to get a pointer to 
the array(s) you need.
Of course for the predefined arrays to work, you will need to know what 
a maximum number you will need.


`Method : Bunch_of_Arrays
`n = some number, probably 10

Array Text(at_Array_Text_01;0)
Array Text(at_Array_Text_02;0)
...
Array Text(at_Array_Text_<N>;0)

Array Longint(al_Array_Long_01;0)
Array Longint(al_Array_Long_02;0)
...
Array Longint(al_Array_Long_<N>;0)

` ....for each type of array you will need



For the 2D approach, a 2D array you declare it:
Array Text($2D_Array_Name;Size_1;Size_2)

you reference it using:
2D_Array_Name{$Row}{$Column}

You can then resize it as needed

On Tue, 31 Oct 2017 19:54:33 +0000, Peter Mew via 4D_Tech wrote:
> If I read that correctly, that will create the arrays for pass 1 through
> the loop, but what about creating the arrays for pass 2, and any subsequent
> passes.
> I expected to create the arrays, as they were needed, for each pass.
> something like
---------------
Gas is for washing parts
Alcohol is for drinkin'
Nitromethane is for racing 
**********************************************************************
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:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to