Normal Topic GoToTabPage ( ) command (Read 601 times)
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
GoToTabPage ( ) command
Jun 11th, 2009 at 8:10am
Print Post Print Post  
The above command requires two parameters. TabGroup and TabPage#.  Generally when left to program tabpages are given name as TabPage, TabPage0, TabPage1, TabPage2 and so on. I want to goto TabPage1 which is really the 3rd one in the group but the command GoToTabPage (LE1, 1) takes me to the first tabpage namely TabPage.   Should I rename them as tabpage1, tabpage2, tabpage3 in order for it to work right? Since the TabPage I want to goto has only subform, so I cannot even use ThrowFocus () to any element on the page.
  
Back to top
 
IP Logged
 
Ben
Lantica Support
*****
Offline



Posts: 218
Joined: Apr 7th, 2005
Re: GoToTabPage ( ) command
Reply #1 - Jun 11th, 2009 at 1:28pm
Print Post Print Post  
Hello Bharat,

Tabpages are numbered from left to right (starting at 1). To get the tabpage you are after you would use
Code
Select All
GoToTabPage(LE1, 3)
 

  
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: GoToTabPage ( ) command
Reply #2 - Jun 11th, 2009 at 7:32pm
Print Post Print Post  
I believe LE1 is not the name of the Tabgroup. How do I findout the name of the tabgroup?
  
Back to top
 
IP Logged
 
Ben
Lantica Support
*****
Offline



Posts: 218
Joined: Apr 7th, 2005
Re: GoToTabPage ( ) command
Reply #3 - Jun 11th, 2009 at 7:58pm
Print Post Print Post  
Select your TabGroup in Designer
Click on the 'Other' tab of the Property Editor
Click into the 'Name' field and press F5
- The name of the TabGroup will be displayed
  
Back to top
IP Logged