- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
dynamic concatenation of checkbox list output in the same window
Hello,
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(), ", " ) )
);
This post originally written in German and has been translated for your convenience. When you reply, it will also be translated back to German.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: dynamic concatenation of checkbox list output in the same window
Here 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( "" )
);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: dynamic concatenation of checkbox list output in the same window
Here 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( "" )
);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: dynamic concatenation of checkbox list output in the same window
Thank you!