Re: Error - cant get around! Expected ;

Posted by Cseresnyes, Zoltan on
URL: http://imagej.273.s1.nabble.com/Error-cant-get-around-Expected-tp3684050p3684056.html

You can't break a line like this:

if (prepost=="Other") {
Dialog.create("Time");


It should be in one line:

if (prepost=="Other") {Dialog.create("Time");


Hope this helps!

Zoltan


--
Dr. Zoltan Cseresnyes

Confocal and 2-Photon Microscopy Core Facility (MCF)
Max-Delbrück-Center for Molecular Medicine
Robert-Rössle-Str. 10
13125 Berlin
phone: +49 (0)30 94062734
email: [hidden email]

http://www.mdc-berlin.de/en/research/core_facilities/index.html



-----Original Message-----
From: ImageJ Interest Group on behalf of flettster
Sent: Wed 6/29/2011 13:28
To: [hidden email]
Subject: Re: Error - cant get around! Expected ;
 
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();
}


--
View this message in context: http://imagej.588099.n2.nabble.com/Error-cant-get-around-Expected-tp6525588p6528552.html
Sent from the ImageJ mailing list archive at Nabble.com.