Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Generating forms on the fly
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00339571
Message ID:
00339883
Views:
18
Jim,

>I understood you perfectly, you did not understand my suggestion.
>
>1) create a form with a pageframe in it.
>2) create grid class for each table needed

You mean one grid class, I suppose? This grid class should has resize functionality depending on number of fields (or FormatGrid method). It already has methods SetProperCaption, for example.

>3) create a container class with the editing controls for each table, that is one conatiner for one table.

If I have >50 tables with different structures, how can I create a container for each of them????? And we may add new tables or modify the structure in existing...

>when you run the form you;
>
>DO FORM Whatever WITH "TableName"
>
>In the form's Init you receive the parameter and then put a grid on page one using the grid class for the tabel whose name was passed and put the container on page two using the container class for the table whose name was passed.

This approach should work, if I have only few tabels to maintain, but with more than 20 tables it seems time consuming, isn't it?

>This way if in the future there is ever another table that needs this, you just create the grid and container classes and use the same form. This is called reusability, see the form can be reused for other tables without needing any modifications. Also there is only one form to maintain.

I dare say that. We should maintain container class for each table also...
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform