You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

Why some methods and classes have semicolon in their defination in Application Packages.

2 replies [Last post]
sweety's picture
User offline. Last seen 10 years 14 weeks ago. Offline
Joined: 01/16/2009
Posts: 15

Hi,

for eg: following class
class A; ---why semicolon is here ?
method A();
property string Q;
protected
method MP() Returns string;
property string p;
end-class;

Also in methods
method A; ---why semicolon is here ?
&p = "Class A: property p";
end-method;

Please help in this issue.

Lepa's picture
User offline. Last seen 2 years 20 weeks ago. Offline
Joined: 06/23/2008
Posts: 591
Re: Why some methods and classes have semicolon in their ...

I'm not sure what you're really asking but every time you define a method inside of a class you need to end the line with ";"

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Ashar's picture
User offline. Last seen 5 years 1 week ago. Offline
Joined: 03/26/2008
Posts: 227
Re: Why some methods and classes have semicolon in their ...

i'm not sure if you need a semi colon after "method A" statement it should work fine without semicolon..