Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to programmatically activate a page?
Message
De
02/06/2010 11:52:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01467053
Message ID:
01467056
Vues:
97
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform