Servoy 3.5 rc6

Ok, there must be something wrong with me here - now all the tabs show up as expected. Weird! :?

However, when I try this code with a tabpanel with 4 tabs on it:

var _form = application.getMethodTriggerFormName;
var _element = application.getMethodTriggerElementName;

if ( forms[_form].elements[_element].tabIndex == "1" )
{
	plugins.dialogs.showInfoDialog( "Info",  "Hello!",  "Ok")
}

I get the following error:

ConversionError - the undefined value has no properties calling elements (onTabChange, line 5)

and these are the contents of my vars in the debugger:

_element	function js_getMethodTriggerElementName() {/* java.lang.String js_getMethodTriggerElementName() */} 
_form	function js_getMethodTriggerFormName() {/* java.lang.String js_getMethodTriggerFormName() */}

I’m running Servoy Developer v3.5RC6 build 511.

Thanks for shedding some light on this for me! :)

Ben