JavaScript Editor js editor     Web development 



Main Page

Specifies a path for file searches.

SET PATH TO [Path] [ADDITIVE]

Parameters

TO [ Path]


Specifies the directories you want Visual FoxPro to search. Use commas or semicolons to separate the directories.
Note:
Visual FoxPro will not recognize a path name properly if a disk or directory name contains an exclamation point (!).

On all FoxPro platforms, functions that return path information, such as CURDIR(В ), DBF(В ), and SYS(2003), use Microsoft MS-DOS path-naming conventions in their return values.
ADDITIVE


Appends additional paths to the end of the current path.

Remarks

Issue SET PATH TO without Path to restore the path to the default directory. Use SET DEFAULT to specify the default directory and CURDIR(В ) to return the current default directory.

SET PATH is not scoped to the current data session; changes you make to the default path using the SET PATH command affect all data sessions.

SET PATH is limited to a maximum of 4095 characters.

When using the ADDITIVE parameter, paths must be included either as a quoted string or valid expression. If you use macro substitution, it must be properly quoted as in following examples:

В Copy Code
xx = ["Folder2"]
SET PATH TO &xx ADDITIVE
** or **
xx = "Folder2"
SET PATH TO '&xx' ADDITIVE

See Also



JavaScript Editor js editor     Web development