PDA

View Full Version : Loop Wizard and validation code



NewsArchive
07-23-2008, 01:58 AM
Adding validation code in the Loop Wizard:

1) How do I determine which dialog is selected so that I can validate only
onformation on that dialog?

2) How do I select the correct wizard dialog when the validation fails?

Simplistic example:

Loop Wizard
Define Dialog 1
Define Dialog 2
Define Dialog 3

IF Dialog 2 path is invalid
Display Message Box "Invalid pathe; try again."
/* Select Dialog 2
Cycle
End
End

Greg Fasolt

NewsArchive
07-23-2008, 02:00 AM
You might get some hints from the attached screen shots.

HTH

Jane

NewsArchive
07-23-2008, 02:01 AM
Hi Jane,

Thanks for your reply; much appreciated. I've been naming my dialogs for a long
time, so I'm squared away there. Didn't know about %_SB_DialogID% (in other
words, I didn't look far enough).

I assumed I had to somehow select the dialog with the problem as the Next
button would have been accepted, but I suppose not by your fine example.
Cool.

Greg Fasolt