Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SET DATABASE PATH in a multi user env.
Message
 
 
À
25/01/2001 06:39:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00467952
Message ID:
00468420
Vues:
12
>Hi Mark,
>Thanks for your replay, a few Q...
>
>
>Where should I write this line ???
>
>>open data addbs(UNC_DATA_PATH) + "mydbc"

at the beginning of your MAIN prg before you turn control over to the user.

>How do you define a form to have this DEFAULTS.H file, should I call it from the Load as well ???

Open the Class browser or your project. Go to the class library where your form subclass is. Modify your form subclass. On the menu pad, click on Class. Then click on Include File. You can do this for any and all classes in your class libraries [VCXs].

If your form subclass is a PRG, the first line should be #INCLUDE my_constants_file_name.h This applies to any PRG file as well.

See VFP Help topics #DEFINE and #INCLUDE for more info.

>>My form class and other classes have a constants file defined called DEFAULTS.H. This file also has #INCLUDE FOXPRO.H as the first line so I get all the VFP constants. This is where I define the UNC path to the DBC, the DATABASE_NAME, etc.
>
>
>Thanks,
>Gadi
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform