>Just wondering if any one has an example on how to create a report class.
>
>thanks in advance...
It's actually custom class with some methods/properties e.g.
***clReport.RunReport method
If This.Mode=1 && evaluate custom property
Report Form (This.ReportName) Preview
Else
Report Form (This.ReportName) NOCONSOLE To Print Prompt
Endif
Calling program may look like:
oReport=createobject("clReport")
oReport.ReportName="Myreport"
oReport.Mode=2
oReport.RunReport()
Having custom class you may add as many properties as needed, e.g. oReport.Title,oReport.Headerstring, oReport.Footerstring etc.
Edward Pikman
Independent Consultant