i think it usefull to add /did -s $dname
-s for scanning in combo or listbox
e.g.
/did -cs $dname 2 scan
it check the line with the text scan on it

i know i could use while, but i think it comfortabler in dialog scripting.