Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GETFILE() change my path?
Message
De
25/08/2005 12:33:19
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01043785
Message ID:
01043953
Vues:
12
GETFILE() does change the "SET PATH" if a result is returned so you need to reset your path name after retrieving a result. Something like:
lcPath = SET( "PATH" )
lcFileName = GETFILE( lcFileName, "imp",  "Import File" )
SET PATH TO lcPath
While looking this up I found a bug fix comment in the same program relating to the use of LOCFILE() vs. GETFILE() which I found interesting. I'll just copy the comment here:
* 1. Replace LOCFILE() function with GETFILE().  Primary difference is when
*    the user presses "cancel" on GETFILE() an empty string is returned. . .
*    OTOH, when pressing "cancel" with LOCFILE() VFP displays an error with
*    which one of the options cancels VFP entirely -- not too cool.
Scott
Scott Ramey
BDS Software
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform