Re: Report Question
Posted in 1998
Clarifying: you can call a function within a report, but the called function cannot have any of the special report instructions (like print, skip, etc), because it's a function, not a report function. Of course, you can also start report and output to report within a report function, but don't. Art S. Kagel wrote in message <3676D5B1.5E96@bloomberg.net>... >Bryan Sapot wrote: >> >> Can you call a FUNCTION from in side a REPORT. >> >> Some thing like this >> >> REPORT thisreport() >> >> ON EVERY ROW >> PRINT "something" >> CALL thisfunc() >> >> END REPORT >> >> FUNCTION thisfunc() >> PRINT "something else" >> >> END FUNCTION >> >> I have a lot of repeated code in the report that could be moved to a >> function. > >I assume you are using 4GL not isql. It works for me. See the >attached sample program. > >Art S. Kagel >