Skip to main content

[Migrated content. Thread originally posted on 30 January 2004]

Hi

I have a control with four tabs. The first tab has a key letter of "1" , the second tab has a key letter of "2",The thirst tab has a key letter of "4" and the fourth tab has a key letter of "4". When I Show the control I want to show the second tab first. How can I do it?

[Migrated content. Thread originally posted on 30 January 2004]

Hi

I have a control with four tabs. The first tab has a key letter of "1" , the second tab has a key letter of "2",The thirst tab has a key letter of "4" and the fourth tab has a key letter of "4". When I Show the control I want to show the second tab first. How can I do it?
Originally posted by Edith400
Hi

I have a control with four tabs. The first tab has a key letter of "1" , the second tab has a key letter of "2",The thirst tab has a key letter of "4" and the fourth tab has a key letter of "4". When I Show the control I want to show the second tab first. How can I do it?


It is pretty straight forward to rule tab appearance. Once you have displayed your tabs, say: "TabX", "TabY", "TabZ", each of these are automatically assigned a number in the order they are provided. Thus, in this case, "TabX" is number 1, "TabY" is number 2 and so on.
If you now want to rule your focus to "TabY" you just do (assuming myTab is the handle to the control):


MODIFY myTab VALUE = 2


Should do the trick.