Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding forms to create formset

Status
Not open for further replies.

jackie1948

Programmer
Jan 25, 2002
78
US
Hi all,
I want to create a formset and add an already existed form to the formset.
Here is what I am doing.
Created a form with an option group that has 2 options (two different departments) select one and then i want to direct to the department form that is approperate for the selected buttons.

Do I create the formset on this form and how do I add the forms for the different departments?

I have VFP 7 and on the toolbar all I have is to create a new form when wanting to add a form.

My question is how do I add an existing form to a new formset.
 

I would discourage the use of a formset as it a nightmare to manage, but you have to create your form within the formset, you cannot import an already existing form into a formset. Perhaps create a blank formset for and copy and paste the controls from the original form?
Again having worked with formsets in the past I would discourage this practice.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Thanks,
do you have any suggestions as to how can accomplish what I want to do.
 

I would call seperate forms, or better yet seperate form classes. The idea of the formset was meant to help the programmer to 'contain' thing of the same nature together, but in the end it should be dropped from VFP. The end result to the end user makes no difference, he does see any difference between using many forms, or a formset.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top