How do I tell which tabpanel was selected?

I tried this but it didn't work:



  if TabPanel1.Caption = "U.S. English" then
    EnglishED.visible=true
    GermanED.visible=false
    FrenchED.visible=false
    ItalianED.visible=false
    SpanishED.visible=false
  end if
  If  TabPanel1.Caption = "German - Deutsch" then
    GermanED.visible=true
    EnglishED.visible=false
    FrenchED.visible=false
    ItalianED.visible=false
    SpanishED.visible=false
  end if
  If TabPanel1.Caption = "Le français" then
    GermanED.visible=false
    EnglishED.visible=false
    FrenchED.visible=true
    ItalianED.visible=false
    SpanishED.visible=false
  end if
  If TabPanel1.Caption = "Italian - Italiano" then
    ItalianED.visible=true
    GermanED.visible=false
    EnglishED.visible=false
    FrenchED.visible=false
    SpanishED.visible=false
  end if
  If TabPanel1.Caption = "Español" then
    ItalianED.visible=false
    GermanED.visible=false
    EnglishED.visible=false
    FrenchED.visible=false
    SpanishED.visible=true
  end if

 _______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to