Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving dynamics forms
Message
 
 
To
29/02/2000 16:57:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00339396
Message ID:
00339563
Views:
21
Mike,

I think about starting a new thread, but this seems to consider the same problem, as I will soon suppose to solve (I would be assigned to a new application soon).

I want to create forms on the fly. I never tried this before, so I want to ask about all problems, which I'll definitely find.

My situation is: I want to create an application, which allows us to maintain Lookups and support tables. These tables have, of course, different structures. The simplest approach is to have an edittable grid. But some of the tables may have more than 30 fields, so they also require an entry form.
So, I imagine this UI: (tell me, if this not seems right to you)
A form with pageframe with two pages (one is invisible - your mhTab would be very helpful for this).
On the first page I would have a grid and our standard navigation bar. I may also have a button - Generate Entry form, which becomes enabled if I have more than, say, 15 fields in my table. The grid, of course, populated in run-time.

So, the problem is with automatic generate the entry form (I mean on the second page, it may also require additional pages...). What could you advise?

Thanks in advance.


>>I have a form that creates several objects by programming and i would like to know if there is a way to put source codes into these new objects and how can i save this dynamic form.
>
>You can't directly add code to methods at runtime. But with VFP6 (Sp3?) you could write a Low Level Class Definition, Compile it, and then add those objects to your forms, code and all.
>
>As for saving it? Keep around the class defintions. What you could do is make sure all the controls are put into a container, not directly on the form. Then you could put the same "dynamic" container class anywhere.
>
>BTW, what exactly do you want to achieve? We may be able to suggest a better way.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform