')' expected in line 4.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

')' expected in line 4.

xiaoying966
Dear all here is my text. macro"计算结果概要"{ Area1=getResult("Area"); Perim1=getResult("Perim.); print("面积:"Area1); print("周长:"Perim1); print("单位:mm");} when i run it it says ')' expected in line 4.("面积:"Area1); Would very much appreciate some help if you can figure out whats going on! Thanks

Reply | Threaded
Open this post in threaded view
|

Re: ')' expected in line 4.

parfait evouna
> Date: Fri, 25 May 2012 03:55:46 -0700
> From: [hidden email]
> Subject: ')' expected in line 4.
> To: [hidden email]
>
> Dear all here is my text. macro"计算结果概要"{ Area1=getResult("Area");
> Perim1=getResult("Perim.); print("面积:"Area1); print("周长:"Perim1);
> print("单位:mm");} when i run it it says ')' expected in line 4.("面积:"Area1);
> Would very much appreciate some help if you can figure out whats going on!
> Thanks
>
>
>
> --
> View this message in context: http://imagej.1557.n6.nabble.com/expected-in-line-4-tp4998815.html
> Sent from the ImageJ mailing list archive at Nabble.com.______________________________________________________________________________________________________________________________________________________________________dear xiaoying966 try it now. macro"计算结果概要"{ Area1=getResult("Area");
Perim1=getResult("Perim."); print("面积:",Area1); print("周长:",Perim1);
print("单位:mm"); } the last line should be modified; but the error was the use of the print function you forgot the coma between the text and the value you would like to print. Best regards,PEM    
Reply | Threaded
Open this post in threaded view
|

Re: ')' expected in line 4.

Robert Baer
I can't be sure, but I think you might be missing an end-quote after Perim. in the line:
Perim1=getResult("Perim.);

-----Original Message-----
From: parfait evouna
Sent: Friday, May 25, 2012 6:46 AM
To: [hidden email]
Subject: Re: ')' expected in line 4.

> Date: Fri, 25 May 2012 03:55:46 -0700
> From: [hidden email]
> Subject: ')' expected in line 4.
> To: [hidden email]
>
> Dear all here is my text. macro"计算结果概要"{ Area1=getResult("Area");
> Perim1=getResult("Perim.); print("面积:"Area1); print("周长:"Perim1);
> print("单位:mm");} when i run it it says ')' expected in line 4.("面积:"Area1);
> Would very much appreciate some help if you can figure out whats going on!
> Thanks
>
>
>
> --
> View this message in context: http://imagej.1557.n6.nabble.com/expected-in-line-4-tp4998815.html
> Sent from the ImageJ mailing list archive at Nabble.com.______________________________________________________________________________________________________________________________________________________________________dear xiaoying966 try it now. macro"计算结果概要"{ Area1=getResult("Area");
Perim1=getResult("Perim."); print("面积:",Area1); print("周长:",Perim1);
print("单位:mm"); } the last line should be modified; but the error was the use of the print function you forgot the coma between the text and the value you would like to print. Best regards,PEM      


------------------------------------------
Robert W. Baer, Ph.D.
Professor of Physiology
Kirksville College of Osteopathic Medicine
A. T. Still University of Health Sciences
800 W. Jefferson St.
Kirksville, MO 63501
660-626-2322
FAX 660-626-2965
Reply | Threaded
Open this post in threaded view
|

Re: ')' expected in line 4.

Peter Haub
In reply to this post by xiaoying966
missing +

Peter

On 25.05.2012 12:55, xiaoying966 wrote:
Dear all here is my text.

macro"计算结果概要"{
  Area1=getResult("Area");
Perim1=getResult("Perim.);
print("面积:" + Area1);
print("周长:" + Perim1);
print("单位: + mm");
}

when i run it it says ')' expected in line 4.("面积:"Area1); Would very
much appreciate some help if you can figure out whats going on! Thanks
-- View this message in context:
http://imagej.1557.n6.nabble.com/expected-in-line-4-tp4998815.html Sent
from the ImageJ mailing list archive at Nabble.com.
Reply | Threaded
Open this post in threaded view
|

Re: ')' expected in line 4.

parfait evouna
In reply to this post by parfait evouna
Dear xiaoying966, try this.  macro"计算结果概要"{  Area1=getResult("Area");
Perim1=getResult("Perim."); print("面积:",Area1); print("周长:",Perim1);
print("单位:mm");  } May be you should modify the last line ; but the error was the use of the print function. you forgot the coma between the text and the value you would like to print. Best regards,PEM            

 > Date: Fri, 25 May 2012 11:46:01 +0000

> From: [hidden email]
> Subject: Re: ')' expected in line 4.
> To: [hidden email]
>
> > Date: Fri, 25 May 2012 03:55:46 -0700
> > From: [hidden email]
> > Subject: ')' expected in line 4.
> > To: [hidden email]
> >
> > Dear all here is my text. macro"计算结果概要"{ Area1=getResult("Area");
> > Perim1=getResult("Perim.); print("面积:"Area1); print("周长:"Perim1);
> > print("单位:mm");} when i run it it says ')' expected in line 4.("面积:"Area1);
> > Would very much appreciate some help if you can figure out whats going on!
> > Thanks
> >
> >
> >
> > --
> > View this message in context: http://imagej.1557.n6.nabble.com/expected-in-line-4-tp4998815.html
> > Sent from the ImageJ mailing list archive at Nabble.com.______________________________________________________________________________________________________________________________________________________________________dear xiaoying966 try it now. macro"计算结果概要"{ Area1=getResult("Area");
> Perim1=getResult("Perim."); print("面积:",Area1); print("周长:",Perim1);
> print("单位:mm"); } the last line should be modified; but the error was the use of the print function you forgot the coma between the text and the value you would like to print. Best regards,PEM    
     

########################################################################

ImageJ mailing list: http://imagej.nih.gov/ij/list.html