Progress
Language Reference
PROPATH Statement
Sets the PROPATH environment variable for the current Progress session.
When you start Progress, it automatically adds the $DLC directory and some subdirectories to your PROPATH. Progress always preserves these directories in your PROPATH, even if you change or clear your PROPATH. Thus, Progress can always find its executables and r-code.
SYNTAX
string-expression
A field, variable, string constant, or combination of these that evaluates to a character string. The character string should be a list of directory paths. The directory names in the path can be separated by commas or by the appropriate separation character for your operating system. The directory pathnames can use the UNIX format for pathnames it a(
EXAMPLES/dir1/dir2/dir3
, for example) or the standard pathname format for your operating system. Use the slash-separated directory name format if you are concerned about portability across multiple operating systems.The
r-ppath.p
procedure displays a strip menu with four choices. The procedure defines three arrays: menu holds the items for selection on the menu, proglist holds the names of the programs associated with the menu selections, and ppath holds the appropriate PROPATHs for each program. The CHOOSE statement allows the user to choose an item from the strip menu.
Progress uses the menu selection number as an index into the ppath and proglist arrays. Progress sets the PROPATH and runs the program.
This simple example changes and displays the PROPATH.
NOTES
- Changes to PROPATH last only for the current session. Any subprocesses inherit the PROPATH in effect when the Progress session started.
- When you start Progress, it automatically adds the top directory of the Progress hierarchy and some subdirectories to your PROPATH. If you use the PROPATH statement to make a change, Progress adds the directories you specify to your existing PROPATH.
- Progress replaces separation characters in expression (a colon ( : ) on UNIX; a semicolon ( ; ) on Windows) with commas, so the resulting PROPATH string can be accessed with the ENTRY function. Therefore, file pathnames passed in expression must not include embedded commas.
- If you change your PROPATH, and your old PROPATH included r-code libraries that are not in your new PROPATH, those libraries are automatically closed. If you run a procedure from a closed library, Progress displays an error message.
- For more information on the PROPATH environment variable, see theProgress Installation and Configuration Guide Version 9 for UNIX or the Progress Installation and Configuration Guide Version 9 for Windows.
SEE ALSO
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |