Cannot use {&OUT} in classes

Rand

New Member
Hi,

I start to use classes in my webspeed application. I found that I cannot use the preprocessor {&OUT} in the class.

I created a test.p and testclass.cls as below. But it didn't output anything to the HTML page. Is it something wrong with my code?

In the document, it said {&OUT} is supported in classes. Anyone use {&OUT} in class?

test.p
def var clstest as class test.testclass no-undo.
{src/web/method/wrap-cgi.i}
output-content-type( "text/html" ).
clstest = new test.testclass().
testclass.cls
USING Progress.Lang.*.
CLASS test.testclass :
CONSTRUCTOR PUBLIC testclass ():
SUPER ().
{&OUT} "TESTING my class".

END CONSTRUCTOR.
END CLASS.

Many Thanks,
 
Top