Good day Olivier,
maybe something is wrong with the definition of your array "STRATLISTE".
The following code lines show that "newArray(STRATLISTE.length);" works
as expected:
STRATLISTE = newArray(0,1,2,3,4,5,6,7,8,9);
defaults = newArray(STRATLISTE.length);
Array.fill(defaults, 10);
Array.show(defaults);
Regards
Herbie
:::::::::::::::::::::::::::::::::::::
Am 09.03.18 um 11:47 schrieb olivier:
> Hello
> I have a new problem starting today with this kind of lines:
> defaults=newArray(STRATLISTE.length);
> I have an error later in the macro; all arrays define this way are array[1].
>
> If I use :
> A=STRATLISTE.length;
> defaults=newArray(A);
> it works.
> What is wrong here ?
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html