General information
Category:
Forms & Form designer
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only