|
-
Apr 9th, 2010, 10:31 AM
#1
Assistance with "Next" logic
This isn't too hard to grasp, but I'm not usually very good at explaining things 
When the User launches the application, they'll hit "Next" to go to the next form. This second form allows the User to choose between 5 additional forms. If the user opts in for all 4, I'll just go to each form when appropriate.
For example:
Next: Form1, Next: Form2, Next: Form3, Next: Form4.
That's about as easy and straight forward as it gets. The issue, is that I have no idea, without writing a bunch of spaghetti code, to launch each form when each one is selected.
I've set up variables to determine which form is selected, but that only helps so much.
Let's say the User select form's 1,3, and 4. I've set up a nested conditional logic statement to check if the first variable is true. If it is, the we launch the form, move on and do all of the check again.
I could do this in every "Next" button, but it seems sloppy and might get confusing. Also, I'd need to set the variable to false after launching so that the checks aren't messed up in every other form. That causes an issue when the User wants to go back.
This might not be the best explanation, so if need be, I can provide a visual or code example, just to get an idea of what I'm saying.
Any information is appreciated.
CodeBank contributions: Process Manager, Temp File Cleaner
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|