>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