Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wizard Design
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Wizard Design
Miscellaneous
Thread ID:
00910173
Message ID:
00910173
Views:
68
I am designing a wizard, and I need advice.

There are 2 initial options:

"Create a Multiple Choice item"
"Create a Yes/No item"

This allows the use to create an option group or check box.
The problem is that there are a bunch of possible ways the wiz
can work.

After selecting "Multiple Choice", the wiz also needs to prompt
for # of choices, then for captions for each choice.

A Yes/No simply needs a Caption.

Both options require a name.

So what I need to know is how to keep track of and/or determine what page
to move to from any point in the wiz.

What I have is sorta working, but it's getting ugly and I need to rethink
my approach.

I have a NextClicked() function that is called after the Next button is clicked
but before the new page becomes active, which in turn handles loading data or
setting up controls for the new page. The last step is determining if the Next
should then enabled or disabled in a function called AllowNext().

The Back button setys the ActivePage back by one and calls the AllowNext() function.

I have been trying to manage the sequence of pages accessed in an array, and then
traversing the array to re-display pages, but like I said, it's getting ugly.

I'm wide open to suggestion.

TIA
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Next
Reply
Map
View

Click here to load this message in the networking platform