Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data environment
Message
De
10/09/1999 11:25:34
 
 
À
10/09/1999 08:17:11
Bill Tetrault
Northern Trust Value Investors
West Palm Beach, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00263304
Message ID:
00263368
Vues:
18
Hi Bill,

In addition to what Evan said have you considered using UNC's?

cd '\\borg\folders'

This way the program won't care which drive a workstation has mapped to a particular server.

I also use fullpath('') to get the entire path to current location.

And one other thing I do in case you run into it. I set up a system variable in my autoexec.bat I put a line in this file that says: glDeveloper = .T.

Note: VFP will see the ".T." as a character.

glDeveloper = IIF(GETENV('glDeveloper') = ".T.",.T.,.F.)

Then in my code I check if gldeveloper is true and the location the app was launched from to see if it should run in developer mode thus junk data.


>I've developed an application on a network, I do my development work
on "p:\development\" and data stor in a subdir of that called
data, problem I'm having is when I compile
and install the app for a user with the same structure yet different
drive say "g:\" with a data subdir the app runs yet prompts
the users for location of the database.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform