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_fpath( [ <cfilespec> ] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_FPATH( [ <cFilespec> ] )


Parameters

<cFilespec>
Filespec to parse.


Returns
PATH portion of filespec (including trailing "\"). If no path was 
specified, a null string is returned.

N_FPATH() with no parameter returns current directory name, including 
leading and trailing "\", if applicable.


Description

N_FPATH() does not verify the existence of a filespec.


Examples

// Returns string '\appl\'.
? N_FPATH('C:\appl\custfile.dbf')
\appl\
// Returns null string since
// no path was specified.
? N_FPATH('c:custfile.dbf')

// Get path of currently selected file.
ext = N_FPATH(N_FSPEC(DBF()))

// Get the current directory name.
RUN CD \APPL\DATA
? N_FPATH()
\APPL\DATA\



See Also: N_FDRIVE() N_FEXT() N_FNAME() N_FSPEC()

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