Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getfile()
Message
De
08/02/2002 09:34:07
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00616954
Message ID:
00617304
Vues:
39
>
>Getting back to my orig quest, is there a way for getfile() to show only files of my choice beginning with a prefix like 020*.dbf rather than all dbfs()?

No, but as Caroline said, you could also use LOCFILE(). It will throw an error if the user presses cancel, so you have to trap for it:
local lcOldError, llCancel, lcFileName
lcOldError = on("error")
llCancel = .f.
on error llCancel = .t.
lcFileName = locFile("020*.dbf")
on error &lcOldError
if !llCancel
    * user selected a file...do your stuff
else
    * user hit cancel
endif
Steve Gibson
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform