Normal Topic Nested tab pages question (Read 318 times)
BOBSCOTT
Senior Member
Members
*****
Offline


That Darn Computer #$X#
{curse words}

Posts: 1195
Joined: Nov 22nd, 2002
Nested tab pages question
May 1st, 2008 at 7:02pm
Print Post Print Post  
Should I be able to use GotoTabPage() even on nested tab pages?

For example I have a set of Tab pages that was on my main form it is LE2. I had a command button that sent the user to that specific tab using GotoTabPage(LE2, 3)

I then moved that tab page onto another tab LE42 the 3rd tab
For me to get my button to work I had to change my programming to include GotoTabPage(LE42, 3)
GotoTabPage(LE2, 3)

I thought GotoTabPage(LE2, 3) would find that Tab element and Tab wherever I stuck it.

The code below works fine and by adding that extra GotoTabPage() on all my buttons does the trick but I just wanted to be sure I was not creating some other problem calling 2 GotoTabPage() together.  

Thanks

If therapyType = ""

Then
     {
           therapytype = "Bilevel"
           Ques2 = "What brand of Bilevel are you using?"
           GotoTabPage(LE42, 3)
           GotoTabPage(LE2, 3)
     }

else
     
           If @Askuser("The Therapy type is already set to ",TherapyType,"Do you want to replace it with Bilevel?") Then
           {      
                 therapytype = "Bilevel"
                 Ques2 = "What brand of Bilevel are you using"
                 GotoTabPage(LE42, 3)
                 GotoTabPage(LE2, 3)
           }

  

Team – Together Everyone Achieves More
Back to top
 
IP Logged