Hi all, I have a problem (maybe in my understanding...) with DialogInput. I want to place a Dialog in a Module, so one can make a choice an this choice is given back from the module. I´ve striped of all unnecessary code and have enclosed the example.
dazu = {"Alpha", "Beta", "Gamma"}; dict = {"a", "b", "c"}; erweitern[dazu, dict] = Module[{}, DialogInput[{}, Column[{{ListPicker[Dynamic@sel, dazu], <a href="mailto:Dynamic@sel}">Dynamic@sel}, Button["OK", DialogReturn[sel]]}]]; Union[sel, dict] ]
This works fine when the module "erweitern" is defined, but nothing happens when keying in:
erweitern[dazu, {"eins"}]
Can someone give me a hint what is going wrong here and how a can manage to make such a "chooser-function"? Greetings
Mike
Attachments: