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.