So I have this code in my Class inside an Application Package. If i put the winmessage inside the method it has no problem, but when its outside it says it needs a statement. Any one knows why this is happening? Here is my code:
The part the error occurs is in WinMessage(&description);
class CopyFromProg
method CopyFromProg();
method getProg(&acad_prog As string);
method getDesc(&desc As string);
property string program;
property string description;
end-class;
method CopyFromProg
end-method;
method getProg
/+ &acad_prog as String +/
&program = &acad_prog;
end-method;
method getDesc
/+ &desc as String +/
&description = &desc;
end-method;
WinMessage(&description);