Topic : The GFA-Basic Compendium Author : GFA Systemtechnik GmbH Version : GFABasic.HYP v2.98 (12/31/2023) Subject : Documentation/Programming Nodes : 899 Index Size : 28056 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : @default : Document not found @help : Help @options : +g -i -s +z @width : 75 @hostname : STRNGSRV @hostname : CAB @hostname : HIGHWIRE @hostname : THING View Ref-FileTRON TRON #n TROFF n: iexp The command TRON (TRace ON) causes each command to be listed on the screen as they are executed. This list can be diverted to a printer or the serial interface by specifying the relevant channel number. The command TROFF turns the TRace OFF again. Example: PRINT "Start:" TRON FOR i%=1 TO 5 PRINT i% NEXT i% TROFF PRINT "End" --> The word 'Start:' appears on the screen, then the numbers from 1 to 5 are displayed, along with the commands which lead to their display. After that the word 'End' is displayed. OPEN "o",#1,"\tron.lst" TRON #1 FOR i%=1 TO 10 PRINT i% NEXT i% TROFF CLOSE #1 ' OPEN "O",#2,"prn:" TRON #2 FOR i%=10 TO 630 STEP 10 LINE i%,0,i%,100 NEXT i% TROFF CLOSE #2 --> The numbers from 1 to 10 are displayed, along with the relevant commands and a row of vertical lines at a distance of 10 pixels. This output is directed to disk or printer. Memo: See section 'The Modifier Keys'. TRON is not usable in compiled applications.