Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
About GETFILE
Message
 
 
À
12/09/2001 10:30:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00555491
Message ID:
00555499
Vues:
14
>HI,
>
>in my program, i use GETFILE() to get a path & file name as below:
>
>MFILE = GETFILE()
>
>** result i put "C:\MY DOCUMENT FILE\SALES DEPT\my file.txt" for MFILE
>
>copy to &MFILE && <=== error on this line
>
>** a error message will appear on screen, it looks the folder name too long.
>
>what can i do ??

Because the path contains spaces, you need to use () instead of macro substitution.

copy to (MFILE)

Or you can enclose the &MFILE in quotes so it is referenced as one entity.

copy to "&MFILE"

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform