Futurebasic/Language/Reference/tron x

TRON XEdit

StatementEdit

(+) Appearance (+) Standard (+) Console

SyntaxEdit

TRON X

DescriptionEdit

The TRON X statement is a debugging tool. It examines the event queue for any recent Command-period keypresses by the user. If a Command-period keypress is found, TRON X displays a dialog giving the user the option to quit the program (this is the same dialog that is displayed by HANDLEEVENTS when the user pressed Command-period and there is no designated break-handling routine). TRON X is handy for manually breaking out of a loop. If your program seems to get "stuck" inside a loop for a long time, try inserting a TRON X statement inside the loop. The next time you run your program, you will be able to break out of the loop by pressing Command-period.

See AlsoEdit

TRON/TROFF; HANDLEEVENTS; ON BREAK