Re: Error - cant get around! Expected ;
Posted by
dscho on
Jun 29, 2011; 12:39pm
URL: http://imagej.273.s1.nabble.com/Error-cant-get-around-Expected-tp3684050p3684066.html
Hi Dr Flett,
On Wed, 29 Jun 2011, flettster wrote:
> 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();
> }
Unsurprisingly, this code works well. I think when Gabriel referred to the
source code, he meant to say: unless you send the complete macro so that
people who are experts at macro programming can reproduce the error and
teach you how to fix it.
The only alternative to providing the complete source code would be a
tedious back and forth of emails which would soon stop being funny for
those who you ask to help.
Hth,
Johannes