Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple data directories
Message
De
25/02/1998 00:45:27
 
 
À
25/02/1998 00:28:28
Christopher Holtz
Integral Computer Services, Inc.
Rochester, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00081000
Message ID:
00081002
Vues:
26
>Does anyone know how to point a form's data environment
>to different data directories dynamically?
>
>I'm trying to enhance my current framework to handle
>multiple 'Companies' each with data in different
>directories, but with the same structure.
>
>Thank you,
>Chris Holtz

Hi, Basically, VFP with Due with the Current Working Directory.
i.e. You can assign to what directory as you wish by:

SET DEFAULT TO H:\happyDir

Remember if You use a CommonDialog to open a file out of the orginal one...
You need to use:
CD H:\happyDir
to restore to original Directory!

Or even simple add this 'CD' command at the beginning of program!
It is more comprehensive if you set all your favour setting at the beginning
of program and you nearly don't change them unless special reasons.

Then, you can adjust them well.
For example, you can:
SET DELETE ON
SET ANSI ON
SET EXACT OFF
CD H:\happyDir
....
* Then, really start you Form
Do Form HappyNow With "Have a Nice Day!"
.....
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform