Follow Us:

Call us:  (306) 986-8888

Using Cases to Change Events on Tab Controls

Using Cases to Change Events on Tab Controls

In order to give a tab control different events for each tab being clicked, you can use a case statement.

The case statement uses the case number to match to the Tab Page Index.  Each tab has an identifier, starting at 0.

This works well, as long as you don’t change the tab order or add new tabs. If you do change it, you will need to update your case statement.  If you want better menus, we strongly suggest you look into FMS Inc, and some of their menu systems.  You will see in my code below, we are using fmsNavigationMenu.

Code looks like this:

Case Statement Access

 

 

Jeff Shirley