Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tabbing through Pageframes
Message
From
09/05/1998 16:26:11
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
07/05/1998 14:59:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00097807
Message ID:
00098316
Views:
34
>You can write this statment in the last control of the pageframe
>
>Thisform.pageframe1.activepage = 2
>
>That's it !! and it will change the active page from 1st to 2nd

A more general solution, suitable to put into a custom method in the form (class?):

* method NextPage
Thisform.pageframe1.activepage = (Thisform.pageframe1.activepage % Thisform.pageframe1.pagecount) +1

The only advantage of this method is that it wraps from the last page to the first :). The PrevPage could look like this (checked it off my head only, nut should work as well):

Thisform.pageframe1.activepage = (Thisform.pageframe1.activepage-2+Thisform.pageframe1.pagecount) % Thisform.pageframe1.pagecount+1

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform