Jon,
>Am I missing something or is a report class that can't call a form to get user parameters to run query's pointless?
>
>I need 99% of the time to run a report based on user entered criteria and the only way I can think of doing this is with a form that then calls a report to report on the resulting query.
>
>I understand objectifying code ( I coded in C++ v 1.0 from Zortech!!) but ...
We have not substantially changed the CReportForm that originally shipped with VFP3 Codebook. But you're right...the majority of reports often have view parameters that need to be set.
You can launch a "View Parameter Entry" form from the "BeforeOpenTables" event of the report. If the user cancels from the form, you can RETURN .F. from BeforeOpenTables() and the report will not execute.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com