dynamic concatenation of checkbox list output in the same windowHello,
I trying to create a simple script where, as various items in a checkbox list are selected in a window, those items are concatenated and displayed dynamically in the same window below the list.
Eventually, I would have a series of checkbox lists whose results are concatenated into a string.
Any suggestion would be appreciated,
Best,
sebastien
Names Default To Here( 1 );
New Window( "Example",
cb = Check Box( {"One", "Two", "Three"}),
text box( "Selected: " || Concat Items( cb << Get Selected(), ", " ) )
);Sharing and Communicating ResultsRe: dynamic concatenation of checkbox list output in the same windowThank you!
Re: dynamic concatenation of checkbox list output in the same windowHere is the simple modification to you code to make it work

Look to the Scripting Index to help understand the elements of the script
Names Default To Here( 1 );
New Window( "Example",
cb = Check Box(
{"One", "Two", "Three"},
tb << set text( "Selected: " || Concat Items( cb << Get Selected(), ", " ) )
),
tb = Text Box( "" )
);