<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />Hi again,
I have a data set that changes dependent on the data pull. What I am trying to do is create a tabbox that has multiple tabs contatined within it that matches the pull. For example if have 10 names contained within the data set then 10 tabs would be created, if the next data set only had 5 names then only 5 tabs would be created etc:
// create a blank tabbox - I'll be appending to this later
CNTL_SET_Tabbox= tabbox();
//retrieve set names
Summarize( _b = By( :set_name ) );
//debug show the number of items
_b_cnt=N Items(_b);
show(_b_cnt);
//start FOR Loop
For( i = 1, i <= nitems( _b ), i++,
//debug show
show(_b);
//set name of tab
current_set = _b;
//create dummy box
displaybox_starting_point = hlistbox(vlistbox(textbox(_b)));
//append to tabbox
CNTL_SET_Tabbox << add (current_set, displaybox_starting_point);
);
//create new window
contrl_nw = New Window( "Set Names Analysis: ",
V List Box( Text Box( " " ), H List Box( close_cntrl_window, ) ),
Text Box( " " ),
Tab Box(
CNTL_SET_Tabbox
)
);
I am using the above code to try and get this to work but when I run it all that displays is the new window, a close button and a blank tabbox:

Can anyone help and show me where I am going wrong...
Fixed the issue. Looks like my issue was trying to have a tab box within a tab box:
Tab Box(
CNTL_SET_Tabbox
)
Once I removed this the script above worked