Hello
I'm trying to make a document generator. What I want to be able to do is have a user have 3 options from the start, Make a new document, Load a saved document, and Delete an Old Document. If the user makes a new document (the main part of the program) then a wizard pops up and walks them through it. They'd be able to write the document title in a textbox, the author, etc. All in text boxes. When the wizard is complete, it takes all the data from those text boxes and puts it into a document that can be printed/saved. Any ideas on how to implement this?
One other thing I should note. The main part of the document is structured around dates. I've already programmed this, but when a user clicks a date on a calendar, it adds the date to the data and would then put that on the document. So if the user clicks 5 dates: 2/1, 2/2, 2/3, 2/4, and 2/5; it would put the following on the document:
2/1:
etc
2/2:
etc
2/3:
etc
2/4:
etc
2/5:
etc
What I'd like to do is create forms at runtime for however many dates the user clicked, so that they can edit the "etc" data for each date. So, using the above example, if they clicked 5 dates, 5 forms would be created at runtime that had textboxes on them to edit what went under that date.
Any help would be great.
-Veniferx
1. Code the wizard user interface
2. Format the data as they are needed in the document
3. Write the document
Maybe you could state in which area your problem is. Or is it in all of them?
As to your specific question at the end, you need to understand that coding a form is more or less the same as coding a class, and that at runtime you create one or more instances of this class. So once you have coded the form for editing the "etc" stuff, let us say you called the form "fEtc", at runtime you create and display as many instances of this form as you like through code like
dim f as fEtc
set f=new fEtc
show f
where f holds a pointer to an instance of the fEtc form.