Article ID: 164739
Article Last Modified on 2/10/2005
SET ALTERNATE TO test.txt SET ALTERNATE ON SET CONSOLE OFF FOR i=1 TO 35000 ? "Row "+STR(i) ENDFOR SET ALTERNATE OFF SET ALTERNATE TO SET CONSOLE ONThe code above uses the ? command instead of @...SAY's to output. The ? command is placed inside a FOR...ENDFOR loop for illustration purposes. In an actual application, the FOR...ENDFOR loop would likely be replaced with what actually needs to be output to the text file.
SET DEVICE TO PRINTER
SET PRINTER TO test.txt
@ 32700,1 SAY "Hello" && This line will cause the error
SET PRINTER TO
SET DEVICE TO SCREEN
Although these few lines of code are all that is needed to reproduce the error, it may be useful to find out what the maximum coordinate can be in a particular situation. Continue with the next few steps to determine the maximum coordinate that can be used.
IF FILE("test.txt")
DELETE FILE "test.txt"
ENDIF
_SCREEN.FONTNAME="Arial"
_SCREEN.FONTSIZE=10
SET DEVICE TO PRINTER
SET PRINTER TO test.txt
FOR i=1 TO 32770
@ i, 1 SAY "Hello "+ STR(i)
ENDFOR
SET PRINTER TO
SET DEVICE TO SCREEN
MODIFY FILE test.txt
SET PRINTER TO SET DEVICE TO SCREEN MODIFY FILE test.txt
Keywords: kbbug KB164739