因此,我在应用程序包中的类中有此代码。如果我把 winmessage 放在方法里面它没有问题,但是当它外面它说它需要一个声明。有谁知道为什么会这样?这是我的代码:
发生错误的部分在 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);