Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Select a TAB programatically
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01493945
Message ID:
01493947
Views:
117
This message has been marked as the solution to the initial question of the thread.
>Hi Gang!
>
>I have a form B with a TABBED Pageframe on it.
>
>I have a form A. On form A I have 2 command buttons.
>
>I want to be able to select the 1st command button and go to form B and Activate TAB A on the form.
>
>Also, when I select the 2nd command button, I would like to go to form B and Activate TAB B on the form.
>
>But when I do, it only Activates TAB A, even though the code is run that should Activate TAB B...
>
>here is the code in FORM B's Init....
>
>
>IF Thisform.p_whichtab = 'Add'
>	Thisform.pgfChipRewardNumber.pageHOH.Activate
>	Thisform.pgfChipRewardNumber.pageHOH.txtChipRewards.SetFocus
>ELSE
>	Thisform.pgfChipRewardNumber.pagePatients.Activate
>	Thisform.pgfChipRewardNumber.pagePatients.txtChipNumber.SetFocus
>ENDIF
>Thisform.Refresh
>
>
>Thanks!

Have you tried:
thisform.pgfChipRewardNumber.ActivePage = 1 && 2
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform