I am using a side tab control to switch the tab control windows on the bottom. I have three different ones. This works fine. The problem is that I want to open the first window of the tab at the same time. This is the code that I am trying to run on the tabs propertyChange script.
[code]value = fpmi.tag.getTagValue("[Client]CurrentWindow")
if event.propertyName == ‘selectedTab’:
if event.source.selectedTab == ‘Stills’:
value = ‘Still_7’
if event.source.selectedTab == ‘Alarms’:
value = ‘AlarmScreen’
if event.source.selectedTab == ‘Rectifiers’:
value = ‘Rectifier’
I have tried this but it gives me a wrong syntax error on the value = ‘Still_7’ when I try to apply it.
I have been searching the forums and can’t quite find a solution that works.