Futurebasic/Language/Reference/tron x

From Wikibooks, open books for an open world
Jump to navigation Jump to search

TRON X[edit | edit source]

Statement[edit | edit source]

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

Syntax[edit | edit source]

TRON X

Description[edit | edit source]

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 Also[edit | edit source]

TRON/TROFF; HANDLEEVENTS; ON BREAK