Progress
Programming
Handbook
Distinguishing ERROR and ENDKEY
Progress treats the same END–ERROR key differently under different circumstances. This is why:
- If you press END–ERROR when you are on the first screen interaction (the first statement that gives you an opportunity to enter data) during a block iteration, it is probably because you decided you do not want to complete the task you started. In this case, Progress undoes whatever you have done in the current iteration of the block and leaves the block. That is, it acts as an ENDKEY key.
- If you press END–ERROR on the second or later interaction of a block iteration, it is probably because you made a mistake or want to retry the work you have done. In this case, Progress undoes whatever you have done and retries. That is, it acts as an ERROR key.
Run the
p-error4.p
procedure again. The following figure shows what happens when you press END–ERROR:p-error4.p
![]()
In determining whether the user pressed END–ERROR during the first or subsequent interaction in a block iteration, Progress does not count any keyboard entries to continue after a pause.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |