Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing current directory and relative path
Message
 
 
À
03/11/2010 15:56:33
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01488018
Message ID:
01488107
Vues:
58
Thanks, I implemented a similar approach and all is well.

>If you're setting your paths at startup, convert them to absolute at that point... like this:
>
	Do addpath With 'libs'
>	Do addpath With 'frx'
>	Do addpath With 'forms'
>	Do addpath With 'tools'
>	Do addpath With 'stuff'
>...
>
>Proc addpath
>	Lparam cPath
>	Try
>		cPath=FullPath(Addbs(cPath))
>
>		If Directory(cPath)
>			If Atc(cPath+',', Set('path')+',')=0
>				cPath=Set('path')+','+cPath
>				Set Path To (cPath)
>			Endif
>		Endif
>	Catch To oEx
>		Assert .F. Message oEx.Message
>	Endtry
>
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform