BREAK [prompt[, statements]]
Description
BREAK temporarily halts execution and opens a dialog box which allows the programmer to execute statements or continue execution. The optional parameter, prompt, is a string expression that is displayed in the body of the dialog box. The optional parameter, statements, is a string expression that is displayed in the execution area of the dialog box.
Example
REM BREAK Example
'BREAK temporarily halts execution
DIM i
FOR i = 0 TO 4
PRINT (i + 1) * 10
IF i = 2 THEN
BREAK "Loop iterator = " & i, "PRINT i"
END IF
NEXT
Output
Related Items
MSGBOX