FutureBasic Logo

<<    Index    >> FutureBasic 5

stop   statement



Syntax:
stop [PascalString]

Description:
This statement interrupts program execution and displays a dialog box that shows the line number where the stop statement appeared, and gives the user the option of continuing or stopping the program. If the optional string parameter is used, it will be displayed as a message in the alert. If no string parameter is used, FutureBasic displays the name of the file in which the stop statement was used.
STOP Statement Image
If the user clicks the "Stop" button, FutureBasic calls your stop-event handling routine (if you've designated one using the on stop statement), and then your program ends. If the user clicks the "Continue" button, execution continues at the next statement following the stop statement.
stop is mainly useful as a debugging tool. It's not recommended for use in the "production" version of your program.

See Also:
end