Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Select a TAB programatically
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to Select a TAB programatically
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:
01493945
Views:
135
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!
Tommy Tillman A+ NetWork+ MCP
Next
Reply
Map
View

Click here to load this message in the networking platform