Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Report Class... whats the point?
Message
 
To
20/03/1998 18:32:30
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00086150
Message ID:
00086622
Views:
22
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
Previous
Reply
Map
View

Click here to load this message in the networking platform