Hi all,
I have a mainform with a tabpanel.
The first tab is selected.
This is the code that works:
var _tabindex = elements.maintabs.tabIndex
if(_tabindex ==1){ elements.tab1.bgcolor = '#FFFFFF' }
if(_tabindex ==2){ elements.tab2.bgcolor = '#FFFFFF' }
But I want to do something like this, but it does not work.
var _tabindex = elements.maintabs.tabindex
var _tabname = elements.maintabs.getTabFormNameAt[_tabindex]
elements[_tabname].bgcolor = '#FFFFFF'
If I put the recordindexnumber (and not the var _tabindex) in getTabFormNameAt, it will run, but
than I have to make if or case statements also, I guess this is the only way.
Thx.