Hi.
You have already created a dialog which has got a list box?
Let's say, the ID of the list box is 2 and the dialog is named test.
This should list the files in the mirc directory.
(You can replace $mircdir with the an other directory.)
on 1:DIALOG:test:init:*:{
;this event triggers when you open the dialog "test"
var %f = 1
while ($findfile($mircdir,*,0) >= %f) {
;while %f is lower or equal to the number of files in the mirc directory
did -a $dname 2 $findfile($mircdir,*,%f)
;this adds the filename including its path to your list
inc %f
}
}
I never use $findfile or something like that, so I dont know wether it works and wether there's an easier way to code this.
I hope that I understood you right.
Kathy