Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getfile()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01043262
Message ID:
01043279
Views:
14
This message has been marked as the solution to the initial question of the thread.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform