Abort_insert

 Abort an insert (add) to a database.
See also BEGIN_INSERT and END_INSERT.

Format
 Abort_insert  [to] DATABASE [/Qualifiers...]
   [for]

Qualifiers
 /Fail=LABEL Label to which to branch if the statement fails.
If LABEL is %EXIT, exit the routine or loop.
If in a loop, and LABEL is %CONTINUE, continue the loop. If not in a loop, and LABEL is %CONTINUE, an error message displays.
 /Succeed=LABEL Label to which to branch if the statement succeeds.
If LABEL is %EXIT, exit the routine or loop. If in a loop, and LABEL is %CONTINUE, continue the loop. If not in a loop, and LABEL is %CONTINUE, an error message displays.
 /Nofail Do not signal an error.
Instead, set the internal variable %FAIL.
   

Example
 Begin_insert to RMS ! Start the add
 Gosub A_PAGE_CONTROL ! Fill in the fields
 Menu ADD_NOW_MENU ! Find out if add now
 If %ITEM = ADD then 
    End_insert to RMS 
    Return ! Complete the add and return
 End_if 
 Abort_insert to RMS ! Abort the add