I would not do this unless there is no other solution for the problem I want to
solve.
Better solutions:
- Pre-declare a number of arrays (Array text(MyArray_001 etc.) and use them by
get pointer (Get pointer ("MyArray_"+string($lCounter))
- On interface level you can address most elements without declaring a process
variable, e.g. Listbox columns.
If you do an EXECUTE FORMULA check this:
http://doc.4d.com/4Dv16/4D/16.2/Using-tokens-in-formulas.300-3432926.en.html
-----Ursprüngliche Nachricht-----
Von: 4D_Tech [mailto:[email protected]] Im Auftrag von Jeremy
Roussak via 4D_Tech
Gesendet: Freitag, 6. Oktober 2017 11:16
An: 4D iNug Technical <[email protected]>
Cc: Jeremy Roussak <[email protected]>
Betreff: Re: Create multi array
EXECUTE FORMULA should do the trick.
For ($i;1;17)
$s:="ARRAY REAL(aANA_"+String($i)+";0)"
EXECUTE FORMULA($s)
End for
Jeremy
Jeremy Roussak
[email protected]
> On 6 Oct 2017, at 09:57, 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]
**********************************************************************