Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>set path</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SET PATH


Syntax:     SET PATH TO [<path list>]/(<expC>)

Purpose:    To specify the search path that Clipper follows when
            attempting to open files.

Arguments:  <path list> identifies the paths Clipper uses when
            searching for a file that is not found in the current
            directory.  A path is a pointer to a directory that consists
            of an optional drive letter and colon, followed by a list of
            directories from the root to the desired directory separated
            by backslashes.  A path list then is the sequence of paths
            to search, each separated by a comma or semi-colon.

            Note: Since the semi-colon is the path list separator,
            continuation of a SET PATH command line with a semi-colon is
            not supported unless (<expC>) is used.

            SET PATH TO with no argument releases the path list and
            Clipper searches only the DEFAULT directory.

Usage:      SET PATH allows Clipper to find and open existing files in
            another drive and/or directory.  When you attempt to access
            a file Clipper first looks for it in the current drive and
            directory.  The current disk drive and directory is
            established when your Clipper application is loaded, or by
            SET DEFAULT.  If the file is not found, Clipper then
            searches each path in the specified path list until the
            first occurrence of the file is found.

            To create new files in another drive or directory, use SET
            DEFAULT TO <directory> or explicitly declare the path when
            specifying a new filename.

            To configure path setting at runtime, pass a DOS
            environmental variable to your application program, retrieve
            its value with GETE(), and SET PATH with this value.  For
            example, in DOS:

               C>SET CLIP_PATH=C:\APPS\DATA, C:\APPS\PROGS

            Later in the configuration section of your application
            program:

               path_set = GETE("CLIP_PATH")
               SET PATH TO (path_set)

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   The following example is an acceptable PATH statement:

      SET PATH TO A:\INVENTORY; B:\VENDORS


See Also: SET DEFAULT CURDIR()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson