Progress
Language Reference


RETRY Function

Interfaces
OS
SpeedScript
All
All
Yes

Returns a TRUE value if the current block is being reprocessed after a previous UNDO, RETRY.

SYNTAX

RETRY 

EXAMPLE

This procedure bypasses the display of the customer data when the REPEAT block is retried (if user changes the customer data and does not specify a country). When you run this procedure, notice that even though the procedure has undone any data that you entered (if you did not specify a country), the data still appears in the window. The data is saved in the window buffers, but it is not stored in the customer record buffer. If you do not use the RETRY function, Progress reprocesses the DISPLAY statement and display the previous values for the customer fields, overwriting the data that was entered in error.

r-retry.p
REPEAT:
    PROMPT-FOR customer.cust-num.
    FIND customer USING cust-num. 

    IF NOT RETRY
      THEN DISPLAY name address city state country.
    ELSE DISPLAY country. 
    
    SET name address city state country.
    IF country = "" THEN UNDO, RETRY.
END. 

NOTES

SEE ALSO

UNDO Statement


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