Created
December 4, 2022 14:58
-
-
Save nosajhpled/5972a653edf21bb0f6328e3ed4e5c0d8 to your computer and use it in GitHub Desktop.
FoxPro 7.0+ - Extract filename from a full path
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Here is an easy way to extract the filename from a full path in Foxpro: | |
frow = ALINES(fname,fullpath,1,"\") | |
filename = fname[frow] | |
So if fullpath = c:\test.txt | |
then | |
filename will be test.txt. | |
#FoxPro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment