Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to programmatically activate a page?
Message
From
02/06/2010 11:52:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01467053
Message ID:
01467056
Views:
96
>Hi everybody,
>
>I know it should be simple, but from the method's code I want to check certain conditions and activate a particular page.
>
>I've tried
>
>
>thisform.pageframe1.ActivePage = 4
>
>and also
>
>thisform.pageframe1.Page4.Activate()
>
>and it didn't work. What should I do to activate the page?
>
>Thanks in advance.

ActivePage should work; I don't know what is going wrong.

On the other hand, I believe that Activate() is an event that fires AFTER the page has the focus, so that you can detect when the page gets active. To actually activate the page, the command would be something different, SetFocus() perhaps.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform