If you want to get selected values from ComboBoxes inside Table Box, I would maybe try with XPath:
Names Default to Here( 1 );
nw = new window("Test Colboxes",
tb = table box(
string col box("String", {"One", "Two"}),
date_nceb = number col edit box("Dates", {1, 2}),
cb = col box("Combo boxes"),
),
button box("OK",
cb_list = cb << XPath("//ComboBoxItem[@selectedItem=\!"true\!"]/text()");
print(cb_list, nitems(cb_list));
)
);
cb << append(combo box({"ABC", "DEF"}));
cb << append(combo box({"GHI", "FUBAR"}));
//Show(tb << get xml);
//Show(cb << get xml);
I have found that from time to time with New Window it is easier to get the values by using XPath. I start the by first checking how the XML looks like with << Get Xml as it shows what I can get with XPath. After that I start googling how to get what I want (attributes, values, filtering...) out of the XML by using XPath.
-Jarmo