Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET DATABASE PATH in a multi user env.
Message
 
 
To
25/01/2001 06:39:29
Gad Hutt
Express Print
Herzliya, Israel
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00467952
Message ID:
00468420
Views:
25
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform