I believe you can achieve with the common dialog (found in the solutions that come with VFP). Look at the sample called "Customize the Open Dialog box". Modify the "try it" click event and change the first line to
#DEFINE ALLFILES1_LOC "All files (*.*)|*.*|Forms (*.scx)|*.scx|Reports(*.frx)|*.frx|Tables(*.dbf)|*r.dbf"
This will open the dialog, and when you switch to DBF it will only show the tables that have an "r.dbf" as the last five character of the name.
>Hi,
>
>Using the GETFILE() command, is there a way to further filter the files displayed beyond extension?
>
>Meaning, lcFile=GETFILE('DBF', 'Browse or Create a .DBF:') will list all the DBF's in the current directory. Is it possible to have that list filtered to only those filenames containing, say, the word "TEST"? E.G. TEST_VERSION_1.DBF, TEST_VERSION_2.DBF, etc?
>
>Thanks