Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP 7 bug on REPORT FOR ... RANGE ... command
Message
 
 
To
08/05/2002 16:56:42
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00654243
Message ID:
00654266
Views:
17
It does the same in VFP6 also. As workaround you can SET FILTER on the report's cursor/table before running report
Select crsReport
SET FILTER TO < condition >
REPORT FORM myreport RANGE 2 PROMPT
Or you can run additional select to filter records.

>I have found that REPORT command ignores range clause if FOR clause is also
>present.
>How to fix this bug?
>
>Steps to reproduce: the following program prints all pages.
>
>
>CREATE CURSOR test ( test c(20) )
>FOR i=1 TO 150
>INSERT INTO test VALUES ( 'line '+TRANSFORM(i) )
>ENDFOR
>CREATE REPORT test FROM test
>* result: all pages is printed
>REPORT FORM test FOR .t. RANGE 2 TO PRINTER PROMPT
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform