Progress
Programming
Handbook


The END–ERROR Key

The ENDERROR key (usually F4 in a character interface, and ESCAPE on Windows in graphical interfaces) is so called because sometimes Progress treats it as ERROR and other times treats it as ENDKEY:

p–error4.p
REPEAT WITH 1 COLUMN 1 DOWN: 
  PROMPT-FOR customer.cust-num. 
  FIND customer USING cust-num. 
  UPDATE name address city state postal-code credit-limit. 
END. 

This code runs the following procedure:

At this point, you are at the PROMPT–FOR statement in the procedure. Press ENDERROR. The procedure returns you to the Procedure Editor. Run the procedure again, entering a 1 for Cust num and press GO:

At this point you are at the UPDATE statement in the procedure. Press ENDERROR. The procedure returns you to the PROMPT–FOR statement and lets you enter another customer number.


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