Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nosajhpled/5972a653edf21bb0f6328e3ed4e5c0d8 to your computer and use it in GitHub Desktop.
Save nosajhpled/5972a653edf21bb0f6328e3ed4e5c0d8 to your computer and use it in GitHub Desktop.
FoxPro 7.0+ - Extract filename from a full path
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