Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tab Active command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Divers
Thread ID:
00989779
Message ID:
00989782
Vues:
37
This message has been marked as the solution to the initial question of the thread.
>hi all
>I have a wierd one, this was working a while ago but is no longer and i have not changed any of the code. on a screen i have a button at the bottom "add" that is not in the pageframe. In the pageframe i have 7 tabs, with tab1 being active when the screen is first loaded. when a user clicks on the "add" button the code says thisform.pgf1.page2.active but this code does nothing, i put in a few wait windows and the code is passed through and run but this no longer activates the second tab. am i missing somthing?
>Slán
>~M

Mark, you should use the ActivePage property of the PageFrame, something like
with thisform.pageframe1
   .ActivePage = Iif(.ActivePage = .PageCount, 1, .ActivePage + 1)
endwith
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform