SetIndex Method
The SetIndex method sets the index of a control. This index identifies the control position in the applet. The SetIndex method returns nothing. It uses the following syntax:
SetIndex(value)
where:
value specifies the number to set for the index.
The following example uses the SetIndex method:
//listOfControls that contains an object of all the controls in the applet
var listOfControls = <AppletPM>.Get("GetControls");
var accountControl = listOfControls["Account"];
var accountIndex= listOfControls["Account"].GetIndex();
var revenueControl = listOfControls["Revenue"];
var revenueIndex= listOfControls["Revenue"].GetIndex();
// Now we can swap the indeces and effectively the tabbing order too.
accountControl.SetIndex (revenueIndex);
revenueControl.SetIndex (accountIndex);