Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File locations
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Titre:
Divers
Thread ID:
00602824
Message ID:
00602836
Vues:
31
>>Hi
>>
>>One thing I have never quite understood is why I have to keep changing my default diectories to make sure that I can access resources (eg. class libraries that I have added to the project) this isn't a problem once the project is built but why doesn't the framework know where it is if it is part of the project.
>>
>>This is kinda frustrating when in order to use createobject I have to load the library which I am frequently already using because my form is derived from an object in the same library.
>>
>>Perhaps I am missing something basic, yet again. Ho hum!!!
>>
>>regards
>>Geoff Scott
>
>
>I think I understand what you mean,
>When looking for libraries etc, FoxPro looks along the current 'PATH' (not the windows based path)
>type
>
>? SET("PATH")
>
>from the command window to see what your path is.
>To set it to something else you can do
>
>SET PATH TO C:\MyPath;C:\MyDevelopmentDir\MyClasses;etc
>
>or in your config.fpw file add (Usually in the HomeDir for each app)
>
>PATH=C:\MyPath;C:\MyDevelopmentDir\MyClasses;etc
>
You can create project hook or more simple create a macro and add it to a Function Key, F12 for example. Just put this in the macro:
set default to (Application.ActiveProject.HomeDir)
Now, you just have to open a projet, activate the command window and press F12 to have the path set to the project directory.
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform