直接用
- // 线程句柄
- var thread
- function button0_click()
- if(!threadgetstatus(thread))
- threadbegin("list", array(editgettext("edit0"), "list0"))
- else
- threadclose(thread)
- threadbegin("list", array(editgettext("edit0"), "list0"))
- end
- end
- function list(s)
- var len = listgetcount(s[1])
- for(var i = 0; i < len; i++)
- var ret = regexmatchtext(listgetchecktext(s[1], i), s[0], false, true)
- if(arraysize(ret) > 0)
- listsetcursel(s[1], i)
- return
- end
- end
- end
复制代码 |