Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activating a page on a pageframe
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00754557
Message ID:
00754796
Views:
17
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform