Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I change dbc path in form
Message
From
10/10/2006 22:36:05
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01160849
Message ID:
01161088
Views:
20
>How does one set the data environment for a lot of forms? I have a base class that I use fordata entry. There is no DE in a form class, so where do I add the call to the SetDBFPath function...
>
>I don't want to open a whole lot of forms and add the same line to call the function...

I don't know any other way but to open each form and edit the form. I don't think you can do this programmically at runtime since this has to be done before the form is created. You might be able to define a custom dataenvironment class and then assign this to each form (but this still requires editing the forms). I have this in all my forms set at design time.
Previous
Reply
Map
View

Click here to load this message in the networking platform