Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Hi Terry,
My plan is to create a class of wizards that can be used but I need logic to control which page I go to next.
For example, depending on the response of an option group, I may jump to page 3 for the first answer and page 4 for another.
Although I can do this on the form, I don't think it allows me as much control at a later date.
Cheers,
-Mark
>You undoubtedly have your reasons for doing it that way, but if possible you may find it more convenient to put the GoToNextPage method on the form, where it is easy to maintain. Thus your Next button click code never has to change:
>
>ThisForm.GoToNextPage()
>
>and your GoToNextPage code can be:
>
>LOCAL lnActivePage
>DO CASE
>CASE lnActivePage=3
> ThisForm.pgfWizard.ActivePage=10 && if there is an exception in the order
>*** Other exceptions to the natural page order
>CASE lnActivePage=27 && last page - do nothing
>OTHERWISE
> ThisForm.pgfWizard.ActivePage=ThisForm.pgfWizard.ActivePage+1
>ENDCASE
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement