< Futurebasic < Language < Reference

TRON X

Statement

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

Syntax

TRON X

Description

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

TRON/TROFF; HANDLEEVENTS; ON BREAK

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.