Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
@ .. SAY oddity
Message
From
10/09/2003 18:33:53
 
 
To
10/09/2003 17:50:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00828011
Message ID:
00828024
Views:
14
>Hi,
>
>The following code sample generates an "Invalid coordinates" error after 2730 lines. Any idea why? According to the error message description in the help file, "Coordinate values must be greater than -32768 and less than 32767". This is in VFP 8. Yes, I know @ .. SAY is semi-deprecated as a means of generating text file output, but this code came from FPD 2.6...
>
>Oddly 2730 is 0xAAA, this is probably just a coincidence.
>
>Thanks,
>Larry
>
>SET PRINTER off
>SET PRINTER TO ttt.txt
>
>SET DEVICE TO print
>
>FOR ii = 1 TO 50000
> @ PROW()+1, 0 say STR(ii)+' '+REPLICATE('x',100)
>ENDFOR
>
>SET PRINTER to
>SET DEVICE TO screen

Gunnar may be right. Try this:

@ MOD(PROW()+1,66), 0 say ...

This should force a page eject every 66 lines. You may have to play with the number 66 (more or less) depending on your printer.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform