Consultor Eletrônico



Kbase P116464: How to display the number of records read in a FOR EACH loop?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/01/2009
Status: Verified

GOAL:

How to display the number of records read in a FOR EACH loop?

GOAL:

How to visualize the progress of record reading inside a FOR EACH loop?

GOAL:

How to monitor the progress of record reading inside a FOR EACH loop?

FACT(s) (Environment):

All Supported Operating Systems
Progress 8.x
Progress 9.x
OpenEdge 10.x

FIX:

Define a FILL-IN, SLIDER or some other visualization widget and update its SCREEN-VALUE using an INTEGER counter incremented by 1 in each iteration of the FOR EACH loop. For example:
1. Using a SLIDER widget:
DEFINE VARIABLE iCounter AS INTEGER NO-UNDO.
FOR EACH customer NO-LOCK:
iCounter = iCounter + 1.
SLIDER-1:SCREEN-VALUE = STRING(iCounter).
END.
2. Using a FILL-IN widget:
DEFINE VARIABLE iCounter AS INTEGER NO-UNDO.
FOR EACH customer NO-LOCK:
iCounter = iCounter + 1.
FILL-IN-1:SCREEN-VALUE = STRING(iCounter).
END.