Progress
Programming
Handbook


Progress Conditions

Progress handles the conditions listed in Table 5–1. Conditions may be raised by specific 4GL statements, procedure errors, or keyboard events.

Table 5–1: Progress Conditions 
Condition
Primary
Causes
Default
Processing
To Override Default Processing
ERROR
RETURN ERROR executed by a trigger or run procedure.
OR
Procedure error, such as creating a duplicate entry in a unique index or performing a FIND, FIND FIRST, or FIND LAST for a nonexistent record.
OR
The user presses ERROR.
Undo and retry the nearest REPEAT, FOR EACH, or procedure block.
Within a database trigger, undo and return ERROR.
ON ERROR phrase
ENDKEY
The user presses ENDKEY.
OR
A FIND NEXT or FIND PREV fails.
OR
Reach the end of an input file.
Undo and leave the nearest REPEAT, FOR EACH, or procedure block.
ON ENDKEY phrase
STOP
STOP statement executed.
OR
The user presses STOP.
Undo the current transaction and retry the startup procedure (or return to the Editor).
ON STOP phrase
QUIT
QUIT statement executed.
Undo the current transaction and return to the operating system (or to the Editor). On an AppServer, terminate the session and return to the Progress client.
ON QUIT phrase

For each condition, you may want to accept the default Progress processing. In many situations this provides the functionality you would want. However, you can also override the default behavior.


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