| STATUS | Index Level | STR |
| Syntax |
STOP
STOP error.message.number, "parameter"{, "parameter" .. } |
| Category | BASIC |
| Type | Statement |
| Description |
stops program execution and returns to the invoking the process.
The parameter{s} are passed to the error message handler and the message stored in "error.message.number" is displayed. The "stop" statement is similiar to the "abort" statement, except the "stop" statement terminates execution of the program without going into the FlashBASIC debugger. Control returns to the calling program, PROC, or Macro. |
| Options | |
| See Also | statements & functions ABORT messages file OPEN END ERROR BEGIN WORK |
| Example |
>open "invoices" to inv.file else stop 201,"invoices"
The "stop" statement above stops program execution if "invoices" can not be opened, and prints the designated error message with a passed variable parameter. If the "invoices" file does not exist, the following message displays: [201] 'invoices' is not a file name read cust.item from cust.file,id else stop 202,id If the item referenced by the variable "id" is not on file, the program stops and displays the following: [202] 'id' not on file. The actual item-id is displayed in the error message. |
| Warnings | |
| Compatibility | D3 7.0 AP R83 |
| STATUS | Index Level | STR |