Re: Report Question
Posted in 1998
Of course you can but your Functions can't contain any REPORT statements like PRINT or GROUP. If you really want to you can start a report to a nul device and make only one output to a report that does nothing than calling a function like a MAIN one and write any code you want (including creating a database or calculating PI if you want). 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. > > Thank you > > ---------------------------------------------------------------------------- > -- > Bryan Sapot Lawless Technology > bsapot@lawless-tech.com > "Get a life get Unix"