Kbase P25611: 4GL/ABL: How to list the 4GL/ABL propath directories?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  4/10/2009 |
|
Status: Verified
GOAL:
4GL/ABL: How to programmatically list the 4GL/ABL session PROPATH directories ?
GOAL:
How to output the 4GL/ABL session PROPATH directories, one directory per line, to a file using 4GL/ABL?
GOAL:
How to access the individual directories of the 4GL/ABL session PROPATH using 4GL/ABL?
FACT(s) (Environment):
All Supported Operating Systems
Progress 9.x
OpenEdge 10.x
FIX:
1. To list the 4GL/ABL session PROPATH to the screen, run code similar to the following:
DEFINE VARIABLE iCounter AS INTEGER NO-UNDO.
REPEAT iCounter = 1 TO NUM-ENTRIES(PROPATH):
DISPLAY
ENTRY(iCounter,PROPATH) FORMAT "x(77)" SKIP.
END.
2. To to output the 4GL/ABL session PROPATH directories, one directory per line, to a file, run code similar to the following:
DEFINE VARIABLE iCounter AS INTEGER NO-UNDO.
OUTPUT TO propath.txt.
REPEAT iCounter = 1 TO NUM-ENTRIES(PROPATH):
PUT UNFORMATTED ENTRY(iCounter,PROPATH)SKIP.
END.
OUTPUT CLOSE.
3. Both of the code snippets above demonstrate how to access the individual directories of the 4GL/ABL session PROPATH.