Problem with Panelindex

PersonPan.Append(Nullfuell(2,Str(nr))) Personpan.panelIndex=nr-1 MsgBox Str(Personpan.panelIndex)

I want another tab-page. ’
The above code is adding one, shows me the right panelindex (where I want now to do something), but still the panel is highlighted, which was highlited, before I appended another page.

How can I make the program to aktivate the appended Tab-Page?

use VALUE not PANELINDEX

PanelIndex is what Panel THAT control is on… VALUE sets the panel that control displays

confusing huh… :slight_smile:

Basiclly PanelIndex refers to the PARENT control…

thx