find tab index

find tab index

is it possible to find the index of a tab based on the value of its label? if so, could anyone post an example please?