1) Use a Two Dimensional Array:
http://doc.4d.com/4Dv16/4D/16.2/Two-dimensional-Arrays.300-3433911.en.html

2) Decide if your arrays are Rows or Columns.  The Docs call them Rows.  If you 
decide your arrays are Columns, then you must REMEMBER the Docs need 
"translation" anytime you refer to them.

3) Decide if you will use array zero.  If you decide to use array zero, then 
you must REMEMBER to Clear it yourself.


That's it.


You will want to fill your arrays, so you may want to pass them to another 
method, or perhaps another process, or even another computer (method with 
execute-on-server attribute).  You will want to declare them.  You can declare 
20 arrays in 20 lines.  Or, see #1.

You may want to display your arrays.  If so, you will use a List Box.  And your 
arrays will be Columns.  See #2.

And you may want somewhere to put additional info, that goes with the data when 
you pass the arrays, and stays synchronized when your user moves or sorts your 
List Box.  And once your users see these arrays they will want others.  If so, 
you will likely re-use your code, your List Box, and your arrays.  In which 
case, see #3.


HTH,

Spencer




> On Oct 6, 2017, at 1:57 AM, stardata.info via 4D_Tech <[email protected]> 
> wrote:
> 
> Hi All,
> 
> I need to create 20 arrays that have a similar name.
> I can do this using the pointers?
> I try with this code, but in compiled mode not work.
> 
> For ($I;1;17)
> $vPoint:=Get pointer("aAna_"+String($I))
> ARRAY REAL("aAna_"+String($I);0)
> End for
> 
> Have suggestions?
> 
> Thanks
> Ferdinando
> **********************************************************************
> 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]
> **********************************************************************

**********************************************************************
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]
**********************************************************************

Reply via email to