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:
01493950
Views:
62
>>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
>
I forgot about that! Thanks!
Tommy Tillman A+ NetWork+ MCP
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform