You need to delete the previous text box, otherwise it will just keep adding them.
nw1 = New Window( "New Test",
Tab Box(
TB = Tab Page Box(
"Analysis",
V List Box(
H List Box(
combo1 = Combo Box(
{"", "Normal", "Lognormal"},
<<setfunction(
Function( {this, index},
Match( index,
1,
TB << append(
Try( tba << delete );
tba = Text Box( "number 1" );
),
2,
TB << append(
Try( tba << delete );
tba = Text Box( "number 2" );
),
3,
TB << append(
Try( tba << delete );
tba = Text Box( "number 3" );
),
)
)
)
)
)
)
)
)
)
Or you can just have an empty text box and change it's value
nw1 = New Window( "New Test",
Tab Box(
TB = Tab Page Box(
"Analysis",
V List Box(
H List Box(
combo1 = Combo Box(
{"", "Normal", "Lognormal"},
<<setfunction(
Function( {this, index},
Match( index,
1, tba << settext( "number 1" ),
2, tba << settext( "number 2" ),
3, tba << settext( "number 3" ),
)
)
)
)
),
tba = Text Box( "" )
)
)
)
)
Jim