Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tab Page..question

Status
Not open for further replies.

parig

Programmer
Feb 8, 2003
6
AU
I have a window with a tab control tab_1.
tab_1 has 9 tab pages.

I want to modify the selectionchanged event of tab_1 from

if newindex=8 then
this.tabpage_notes.triggerevent("ue_receive")
end if

to be something like

if tab_1.tab_1.control(newindex).text="Notes" then
this.tabpage_notes.triggerevent("ue_recieve")
end if

because... the tab order of the notes tab will not always be 8 [visiblity of other tabs can be customized by the user..]

PB complains that the syntax of the above statement is wrong.
Any suggestions?
 
Try

if this.control[newindex].text="Notes" then
this.tabpage_notes.triggerevent("ue_recieve")
end if

Note square brackets
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top