Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Guide To CA-Clipper - <b>set default</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SET DEFAULT
 Set the CA-Clipper default drive and directory
------------------------------------------------------------------------------
 Syntax

     SET DEFAULT TO [<xcPathspec>]

 Arguments

     TO <xcPathspec> identifies a disk drive and the directory as the
     default and can be specified either as a literal path specification or
     as a character expression enclosed in parentheses.  If you specify both
     a drive and directory, a colon must be included after the drive letter.

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

 Description

     SET DEFAULT sets the drive and directory where the application program
     creates and saves files, with the exception of temporary files and files
     created with the low-level file functions.

     SET DEFAULT does not change the DOS drive and directory.  When
     attempting to access files, the DEFAULT drive and directory are searched
     first.  To set additional search paths for file access, use SET PATH.

 Notes

     .  Initial Default: When a CA-Clipper program starts, the default
        drive and directory are the current DOS drive and directory.  Within
        the program, you can change this with SET DEFAULT.

     .  Running external programs: Executing a RUN command accesses
        the current DOS drive and directory.

 Examples

     .  This example shows a typical use of SET DEFAULT:

        SET PATH TO
        ? FILE("Sales.dbf")      // Result: .F.
        //
        SET DEFAULT TO C:\CLIPPER\FILES
        ? FILE("Sales.dbf")      // Result: .T.
        //
        SET DEFAULT TO C:        // Change default drive
        SET DEFAULT TO \         // Change to root directory

        SET DEFAULT TO ..        // Change to parent directory

 Files   Library is CLIPPER.LIB.


See Also: CURDIR() SET PATH

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