Information générale
Catégorie:
Codage, syntaxe et commandes
William,
It would be interesting to see if you get the same error using the $ instead of an actual value.
The $ essentially means 'the current line' so $+1 would do the next line.
Being relative one would hope that you'd never hit a real number that is out of range (unless you did $+32768 or some such).
cheers
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement