Yes, exactly. That what I meant in my previous comment. There are some more issues in your script logic Sometimes, you execute the same code twice and overwrite values.

Did you already download the Example Package and Learning SetupBuilder Part I? There are some very interesting custom dialog demo projects available (including "event handling").

Friedrich