Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the current SET DATABASE
Message
From
02/10/1997 11:58:48
 
 
To
02/10/1997 11:56:34
Rob Gordon
Xon Digital Communications Ltd.
Dartmouth, Nova Scotia, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00052221
Message ID:
00052877
Views:
32
>>>Here's the current setup. I have an APP that opens different versions of a database. Each database is located in a separate directory. I've been using :
>>>
>>>CLOSE DATA
>>>OPEN DATABASE (myDBC)
>>>SET DATABASE to (myDBC)
>>>SET PATH to (the directory in which myDBC lives)
>>>
>>>The problem is , if the database table referenced in the forms DataEnvironment exists it will use this table instead of the one I want from the current Database setting. The only way to get it to use the correct table is to move the original directory referenced in the form's DE so Foxpro can't find the original.
>>>
>>>The other option would appear to be load the tables manualy in each forms DE OpenTables method. This, of course, is a major drag!
>>>
>>>Any other ideas ?
>>
>>Basically, you have to reset DE.CursorX.Database properties in DE.BeforeOpenTables event.
>
>According to Foxpro this property is Readonly at Runtime ..

Nope: "Read-only at design time and read-write at run time."
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform