Hey, u can use this:


dialog loop {
title "Loop test"
size -1 -1 79 104
option dbu
list 1, 3 3 72 83, size
button "Loop", 2, 21 89 37 12
button "", 3, 0 0 0 0, hide cancel
}
on *:dialog:loop:sclick:2:{
while ($did($dname,1).lines < 9999) {
var %a $r(1,9999)
if (!$didwm($dname,1,%a)) { did -a $dname 1 %a }
}
}


but the speed.. is sucks frown