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 default</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
SET DEFAULT


Syntax:     SET DEFAULT TO <drive> [:<path>]/(<expC>)

Purpose:    To set the drive and directory where your Clipper
            application creates and saves files.

Arguments:  <drive> identifies a disk drive name or letter.

            <path> identifies the directory that you want to make
            the default.  If you specify both a drive and directory, a
            colon must be included after the drive letter.

            SET DEFAULT TO without an argument defaults to the current
            DOS drive and directory.

Usage:      When a Clipper application starts, it's DEFAULT drive and
            directory are the current DOS drive and directory.  Once in
            the application, this can be changed with SET DEFAULT.

            Note that the DEFAULT drive and directory are searched first
            when attempting to access files.  To set additional search
            paths for file access, use SET PATH.  SET DEFAULT is used
            primarily to specify the location where new files are
            written.

            Note also that SET DEFAULT does not change the DOS drive and
            directory.  Executing a RUN accesses the last drive and
            directory set in DOS.

Library:    CLIPPER.LIB


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

   SET PATH TO
   ? FILE("Sales.dbf")              && Result: .F.

   SET DEFAULT TO C:\CLIPPER\FILES
   ? FILE("Sales.dbf")              && Result: .T.


See Also: SET PATH CURDIR()

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