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 1 year 10 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 3 weeks 2 days ago. Offline
Joined: 06/23/2008
Posts: 565
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 4 weeks 3 days ago. Offline
Joined: 03/26/2008
Posts: 208
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..

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
The question below is to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.