[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FN_GETCD()
 Get the current directory
------------------------------------------------------------------------------
 Syntax
 
      fn_GetCD( [<nDrive>] ) --> <cPathSpec>
 
 Arguments

    <nDrive> identifies the drive.  Use 0 for the default drive, 1 for
             drive A, 2 for drive B, and so on.  It is optional and
             if not passed the default drive will be used.

 Returns

    <cPathSpec> will be a path specification without a drive designator.
                If the call fails then an empty string will be returned
                and fn_Error() can be used to obtain error information.

 Description

    This call is virtually identical to Clipper's CurDir(), but is
    included here for the sake of completeness.

 Examples

    // Get the current directory of the default drive

       ? fn_GetCD()

    // Get current directory of drive C

       ? fn_GetCD( 3 )

 Header File: netto.CH (only needed if you want to make use of the #defines for

 Header File: the error codes).


 Source: N:\SRC\FSYS\CURDIR.PRG

 Author: Ted Means

See Also: fn_MkDir fn_RmDir() fn_RenDir()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson