[Gambas-user] Still jacking with tabstrips properties and adding tabs

Ron Onstenk ronstk at ...239...
Wed Aug 13 01:06:31 CEST 2008


On Tuesday 12 August 2008, M0E Lnx wrote:
> With tabstrip1
> .count = .count + 1 ' this works... adds a new tab to the tabstrip
> .index = .count ' This is where the problem is, it keeps saying bad index
> End With
> 


If you have 1 tab then count=1 and index=0

Adding a TAB with .count + 1 gives 2 TAB's.
tab1 index=0, tab2 index=1 so index is 0 based.
the line with the error shoul be .index=.count - 1
hope this help

Ron 1st






More information about the User mailing list