Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
@ .. SAY oddity
Message
De
10/09/2003 18:33:53
 
 
À
10/09/2003 17:50:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00828011
Message ID:
00828024
Vues:
12
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform