Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_fdrive( [ <cfilespec> ] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_FDRIVE( [ <cFilespec> ] )


Parameters

<cFilespec>
Filespec to parse.


Returns

Drive letter portion of filespec (including ":"). If the filespec 
contains no drive-specification, a null string is returned. N_FDRIVE() 
with no parameters returns current drive.


Description

N_FDRIVE() does not verify that the filespec exists.


Examples

// Returns string 'C:'
? N_FDRIVE('C:\appl\custfile.dbf')
C:

// Returns null string - no drive specified
? N_FDRIVE('appl\custfile.dbf')

// Returns currently selected drive letter,
// including colon
RUN D:             // Select drive D:
? N_FDRIVE()
D:



See Also: N_FEXT() N_FNAME() N_FPATH()

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