FoxPro JustFName() function

The VFP JustFName() function returns the name of a file complete with its extension.

JustFName ("C:\Microsoft Visual FoxPro 9\vfp9.exe")

would return:

"vfp9.exe"

Use the JustStem() function if you want the stem of the filename without any extension.

VBA equivalent

Microsoft Access does not have equivalents to these FoxPro file name commands so I wrote this library Visual Basic functions to do give me the same facilities in VBA.

MS Access technical tips

Visual FoxPro technical tips

General Tips

 

More tips from Alvechurch Data

FoxPro Functions

FoxPro has always had functions like FREAD and FWRITE to read and write files at a low level. They can handle files which defeat the STRTOFILE and FILETOSTR functions.

Read More

FoxPro DefaultExt function

FoxPro functions to manipulate names of files and folders

Read More

FoxPro ForceExt function

FoxPro functions to manipulate names of files and folders

Read More

FoxPro ForcePath function

FoxPro functions to manipulate names of files and folders

Read More

FoxPro JustExt function

FoxPro functions to manipulate names of files and folders

Read More