Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you Determine the Current PAGE of the PAGEFRAME
Message
From
17/02/2004 15:32:22
 
 
To
13/02/2004 01:10:20
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00876459
Message ID:
00878087
Views:
20
Thank you Dragan, I didn't know that changing PageOrder would change ActivePage return value. I really never had to do that.

Luis


>Doesn't work if page order was changed from the default. If you've added page7 and made it appear between page4 and page5 (by setting its pageorder=5), the pageframe.activepage=5 when active page is pageframe.pages[7]. That's why Marcia is right.
>
>>Hello Marcia,
>>
>>It wouldn't be better: This.Pages(This.ActivePage) ??
>>
>>Just a suggestion.
>>
>>Luis
>>
>>
>>>I am trying to determine which Page of the Pageeframe has the focus.
>>>
>>>In addition to what the others have said, remember that the activePage property is corresponds to the PageOrder property of the page that currently has fous. So, to be absolutely positively sure you have the right page, you need code that is similar to this in the pageframe:
>>>
>>>
>>>FOR EACH loPage IN This.Pages
>>>  IF loPage.PageOrder = This.activePage
>>>    *** loPage is the object reference to the page that has focus
>>>    .
>>>    .
>>>    .
>>>    EXIT
>>>  ENDIF
>>>ENDFOR
>>>
Previous
Reply
Map
View

Click here to load this message in the networking platform