Subject |
Getting Just the File Name from Getfile() |
From |
Louis James <l.james@lcsnet.net> |
Date |
Tue, 22 May 2018 22:20:59 -0400 |
Newsgroups |
dbase.getting-started |
Firstly assume that I am in the folder F:\Data\2018\03-2018
if I use getfile(), in the following example:
f = GETFILE("*Z*.xml","Select a File",.T.,"XML Files (*.xml)")
I will get on the return something like:
f = F:\Data\2018\03-2018\04-23-2018 The Long FileName.xml
What I am interested in is JUST the filename without the path. In this example:
04-23-2018 The LongFileName.xml
How do I strip out the path and just get the filename. Thank you for helping.
Louis
|
|