Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getfile()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01043262
Message ID:
01043279
Vues:
13
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform