PROPATH statement
Sets the
PROPATH
environment variable for the current ABL session.When you start ABL, it automatically adds the $DLC directory and some subdirectories to your
PROPATH
. ABL always preserves these directories in yourPROPATH
, even if you change or clear yourPROPATH
. Thus, ABL 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(/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.ExamplesThe
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 appropriatePROPATH
s for each program. The CHOOSE statement allows the user to choose an item from the strip menu.
The AVM uses the menu selection number as an index into the ppath and proglist arrays. The AVM 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 thePROPATH
in effect when the ABL session started.- When you start ABL, it automatically adds the top directory of the ABL hierarchy and some subdirectories to your
PROPATH
. If you use thePROPATH
statement to make a change, ABL adds the directories you specify to your existingPROPATH
.- ABL replaces separation characters in
expression
(a colon ( : ) on UNIX; a semicolon ( ; ) in Windows) with commas, so the resultingPROPATH
string can be accessed with the ENTRY function. Therefore, file pathnames passed inexpression
must not include embedded commas.- If you change your
PROPATH
, and your oldPROPATH
included r-code libraries that are not in your newPROPATH
, those libraries are automatically closed. If you run a procedure from a closed library, the AVM displays an error message.- For more information on the
PROPATH
environment variable, see OpenEdge Getting Started: Installation and Configuration.See also
OpenEdge Release 10.2B
|