Hello David,
thank you for the answer this is helpful, but not the whole solution. The problem is, that I want to process the output (i.e. x) after having chosen words via TogglerBar, the structure of the module (or DynamicModule?) ist somewhat like:
choosewords[words : {_String ..}] := Module[{list = words, out = {}},
out = chooseWords[list]; (* Here is your function*)
out = Take[out, 1]; (* here some more code,
just an example....*)
]
If I put the semicolon after the function, I get no output. I´m not very familiar, as you see, with user-interfaces, this is my first attempt ;-)
Greetings Mike