Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Path Problems
Message
De
30/08/2000 09:57:06
 
 
À
29/08/2000 23:28:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Titre:
Divers
Thread ID:
00410604
Message ID:
00410704
Vues:
16
>OK, I'm running into a couple of issues with paths. The first is that I've tried setting my path: SET PATH TO "C:\projectname,C:\projectname\data,C:\projectname\forms,C:\proj..." in numerous places such as in the code that I set as main, in options from the designer window, and in form inits.

SET PATH is global. Once you've set the path in main, there is no reason to set it again anywhere else in the app.

>
>Regardless, when something is called from the C:\projectname\reports folder (or forms, menus,...) the program can't find it.
>
>The second issue is that this program is intended for multiuser use, and I can't visualize how these paths are going to be manipulated when installed. IOW, what if they are installed on drive D:? I've already hardcoded the paths to be drive C:\whatever.
>
>I've started researching these issues in the msdn online help, but would appreciate a professional's point of view.
>
>Rodney

Never, never, never hardcode a drive letter or network name in code.
Never do it in the SET PATH in app code either, especially for multiuser.
In this case, since the app should start from the projectname directory, the SET PATH should look like this:
SET PATH TO reports, forms, data, [etc]

If fixing this means going back and changing a bunch of code, do it. You'll be glad you did.
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform