Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to add and remove tables to dataenvironme
Message
From
18/06/1999 13:12:09
Kenneth Downs
Secure Data Software, Inc.
New York, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00231451
Message ID:
00231494
Views:
17
>I made an error at the begining of my applications, because it was small and I put Ser*.dbf and Inv*.dbf tables in Inventory database, now the aplications are big and I need to separate them.
>
>These Forms have tables that belong to "Inventory" and I need to create "Service" database and move all the Ser*.dbf tables to "Service"
>
>I'm not using classes And I think changing the path to tables won't be the solution because I need to open all the forms and put the code.
>
>Any suggestion?

Well, um, you've got some work in front of you. IMHO, forms always must be based on a class, if only to take care of situations like this. Here's a hack you can try:

1. Create a base form class that contains the code you need in LOAD
2. Write a routine to open up each of your SCX's as a Table. For each SCX locate the record in which "baseclass" is "form", and fill in "class" with the name of your new form class, and "classloc" with a relative path to the library containing the base class.

This will cause all of your forms to "suddenly" be based on a class.

Hope this helps.
Previous
Reply
Map
View

Click here to load this message in the networking platform