Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing current directory and relative path
Message
 
 
À
03/11/2010 14:16:14
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:
01488024
Vues:
51
>>Hi everybody,
>>
>>I'm using relative paths in the development. I have code that changes the current directory and then all my relative paths don't work anymore.
>>
>>Is there a method to fix the probem (still use the relative paths, but allow changing of the main directory)?
>>
>>It is not a problem in the compiled application, but I want to be able to test it in IDE.
>>
>>Thanks in advance.
>
>Is it that when you change the main directory you want to change the path statement so that the paths that were relative to the previous main directory so that they are now relative to the new main directory?
>
>It sounds like you should be using absolute paths.

No, the paths should remain the same as they were.

In other words, when I change the directory, the program no longer sees the procedures that are in the Progrs directory of the project.
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