Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default Path????
Message
De
17/11/1998 13:04:37
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00158348
Message ID:
00158355
Vues:
15
Hi Perry ----

Try changing the SET DEFAULT line to:

SET DEFAULT TO "&gcPath."

If there is a space in the directory structure name, an error will occur without the quotes.



>Hi all,
>
>I have a program where I use the following code to finde the default path of the program:
>
>m.home = SYS(16)&& save executing program file name
>IF !glDebug
> pos = AT(UPPER('\MyProgram.exe'), UPPER(m.home), 1)
>ELSE
> pos = AT(UPPER('\progs\MyProgram.fxp'), UPPER(m.home), 1)
>ENDIF
>m.home = SUBSTR(UPPER(m.home), 1, pos)
>RELEASE pos
>gcPath = m.home
>
>SET DEFAULT TO &gcPath && Line the error occurs at
>
>As long as the program is located in the C:\MyProgram\, no problem. As soon as I move the program to let's say C:\Program files\MyProgram\, I get an "Invalid Path Name" error. If I choose "Ignore", the utility runs properly.
>
>What could be causing this???
>
>TIA
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform