Consultor Eletrônico



Kbase P12976: How to process the items of a list one at a time?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/2/2003
Status: Unverified

GOAL:

How to process the items of a list one at a time?

FIX:

This procedure uses NUM-ENTRIES and ENTRY functions to loop through the PROPATH (a comma-separated list of directory paths) and print the directories, one per line.


DEFINE VARIABLE i AS INTEGER.

REPEAT i=1 TO NUM-ENTRIES(PROPATH):
DISPLAY ENTRY(i,PROPATH) FORMAT "x(64)".
END.