As Walter says: Tabpanel.value gives the panel number but even so if you are
disorganized or get caption and number out of order you could still use the
structure below but why not use Select case? A little more effecient. ( forgive
me if I have syntax little wong.)
ie.
Select Case TabPanel.Caption
Case "U.S. English"
EnglishED.visible=true
GermanED.visible=false
FrenchED.visible=false
ItalianED.visible=false
SpanishED.visible=false
Case "German - Deutsch"
GermanED.visible=true
EnglishED.visible=false
FrenchED.visible=false
ItalianED.visible=false
SpanishED.visible=false
Case "Le français"
Case Else
End Select
Brian Heibert <[EMAIL PROTECTED]> wrote:
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:
Search the archives of this list here:
---------------------------------
Groups are talking. We´re listening. Check out the handy changes to
Yahoo! Groups.
_______________________________________________
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>