Information générale
Catégorie:
Gestionnaire d'écran & Écrans
I went back and looked at one I wrote, a script for a call center with 50 pages and no page tabs. I made a ThisForm.udfPageToMoveTo() method, which accepted the destination page (name or page number) and a few other parameters, and mainly issued ".ActivePage=". The click code of all the decision / navigation buttons just calls the method and passes where it needs to go.
Yours is a bit different because your "Next" button has to respond to a different context for every page, so I can see why you have chosen the other way - if you use your container somewhere else, you want the branching logic to go with it. If in fact that is unlikely, my guess would be that one big method would ultimately be easier to maintain than lots of identically named little ones. Anyway, good luck.
Précédent
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