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:
Divers
Thread ID:
01668266
Message ID:
01668271
Vues:
84
GETFILE() uses the current directory. So - change the current directory then reset it when you're done.

You have to save the original directory anyway because all of VFP's (Windows' really) folder functions change the path when you pick a file or folder from a new location.
lcOldPath = SYS(5) + CurDir()

CD (lcStartPath)
lcFile = GETFILE(...)

CD (lcOldPath)
+++ Rick ---

>Hi,
>Is there a way to make getfile() start looking in a by me instantiated directory instead of the default directory?
>Regards,
>Koen
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform