Progress
Programming
Handbook


Rules About UNDO

Within an ON ERROR, ON ENDKEY, ON STOP, or ON QUIT phrase, you can specify a block to be undone. This is the syntax for the UNDO option:

SYNTAX
UNDO [ label1 ] 
  [    , LEAVE  [ label2 ] 
      | , NEXT   [ label2 ] 
      | , RETRY  [ label1 ] 
      | , RETURN [ ERROR | NO-APPLY ] [ return-string ] 
] 

Within this syntax, you can name the block to be undone, label1. The block you name must be the current block or a block that contains the current block. If you omit label1, Progress determines the block to undo. It chooses the innermost containing block with the error property. The following blocks have the error property:

Optionally, you can specify the action Progress takes after undoing the block:

The default action is to retry the block that was undone.

For more information on UNDO, see the Progress Language Reference .


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095