Login  Register

Re: Error - cant get around! Expected ;

Posted by flettster on Jun 29, 2011; 11:28am
URL: http://imagej.273.s1.nabble.com/Error-cant-get-around-Expected-tp3684050p3684055.html

The macro works fine without the following code in it. This is lines 10-22.

the error message refers to line 132!



Dialog.create("pre/post");
prepost = newArray("Pre", "Post", "5", "10", "15","Other");
Dialog.addChoice("Time post contrast", prepost);
Dialog.show();
prepost=Dialog.getChoice();

if (prepost=="Other") {
Dialog.create("Time");
Dialog.addMessage("Please enter the Time");
Dialog.addMessage("(Enter the time relative)");
Dialog.addString("Number",1);
Dialog.show();
prepost = Dialog.getString();
}