, ,

Enable, Disable, Select Tab on Form using scripting

You can now programmatically Enable, Disable and Select a tab on the form. The generic syntax is:

 

Code

form.EnableTab(integer);

form.DisableTab(integer);

form.SelectTab(integer);

 

where interger represents the tab’s ordering spot on the form, starting with 0 for the first tab.

 

For example, to select and display the contents of the second tab on the form:

Code

form.SelectTab(1);

 

To disable the second tab on the form:

 

Code

form.DisableTab(1);

 

 

To enable the second tab on the form (in case you had previously disabled it through scripting):

 

Code

form.EnableTab(1);