Re: Dialog.addChoice with Variables / Variables in an Array?
Posted by
rayh on
Jul 30, 2014; 2:54pm
URL: http://imagej.273.s1.nabble.com/Dialog-addChoice-with-Variables-Variables-in-an-Array-tp5008965p5008974.html
Gabriel Landini wrote
Green is a variable, "Green" is a string, so change the above to:
choices = newArray(Green, Red);
Thanks for your reply, but I already tried that, and when I do so the choices in the dialog box are both shown as "NaN", and I also recieve "NaN" from the print function. Unfortunately I didn't find any information if arrays are generally able to list variables. By chance, does anyone know if there's a possibility to somehow 'render' a string to a respective variable inside a macro?