Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print button doesn't respect FOR clause in REPORT NOWAIT
Message
From
09/07/2001 07:57:16
 
 
To
06/07/2001 12:22:21
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00526994
Message ID:
00528037
Views:
26
Hi!

I just want to help you and explain the possible cause of the problem and if it could be workarounded at all. If you do not like how I answered, just tell nothing, please. There are a lot of limitations and bugs in the VFP that exists even from VFP3.0 and VFP 5.0 and are not fixed in VFP7.0. Just because they're too little compare to resources required to fix these bugs and break these limitations. Just a simple question: when you develop program, you develop it by efficient way, when approach you use cost less that benefit you gain from the program, right? Think about VFP and its limitations by the same way - imagine yourself on the place of the developer of VFP abd you will understand.

>I wrote: Clicking Print button in Preview window causes GPF (VFP 5) or
>exception error (VFP 7)
>
>Your reply: That could be considered not bug but just a limitation. However, indeed, this is rarely used and probably require a lot of effort from MS VFP team to fix this.
>
>I like this reply! Even Mr. Gates cannot give better answer !
>
>
>>OOPS, just not use set filter to. I guess VFP works the same way, but all these SET FILTEr's are used in background for each report when FOR is included in REPORT command. Because report is not waiting, filter got lost as soon as next command executed after REPORT FORM ... NOWAIT command, that temporary filter is dropped to make further executing of code consistent.
>>
>>That could be considered not bug but just a limitation. However, indeed, this is rarely used and probably require a lot of effort from MS VFP team to fix this.
>>
>>>Vlad,
>>>
>>>Do you test your suggestions ?
>>>
>>>NOWAIT clause causes REPORT command NOT to wait. So SET FILTER TO is
>>>executed immediately after REPORT command. Even report window preview shows two lines!
>>>You notice this easily if you run your changed progam.
>>>My users like modeless reports.
>>>
>>>
>>>>
>>>>
>>>>create cursor test ( test c(20) )
>>>>insert into test values ( 'line 1' )
>>>>insert into test values ( 'line 2' )
>>>>create report TEST from TEST
>>>><b>set filter to recno()=1</b>
>>>>report form test preview nowait
>>>><b>set filter to</b>
>>>>
>>>>
>>>>HTH.
>>>>
>>>>>I encountered the following bugs using REPORT FOR ... NOWAIT command.
>>>>>Those bugs are present in all Visual FoxPro versions.
>>>>>
>>>>>1. Clicking Print button in Preview windows causes GPF (VFP 5) or
>>>>>exception error (VFP 7)
>>>>>
>>>>>2. In test program, if I comment out the line
>>>>>
>>>>>create report TEST from TEST
>>>>>
>>>>>clicking print button prints TWO lines!
>>>>>
>>>>>Is it possible to fix this so that Print button uses FOR condition ?
>>>>>
>>>>>Test program:
>>>>>
>>>>>
>>>>>
>>>>>create cursor test ( test c(20) )
>>>>>insert into test values ( 'line 1' )
>>>>>insert into test values ( 'line 2' )
>>>>>create report TEST from TEST
>>>>>report form test preview for recno()=1 nowait
>>>>>
>>>>>
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform