|
发表于 2012-10-13 15:20:21
|
显示全部楼层
本帖最后由 netegg 于 2012-10-13 17:06 编辑
回复 30# 邪恶海盗
[au3]Case $combo23
local $mpbzi = '', $i = 0
GUICtrlSetData($combo24, "", "后缀")
While $i <= _GUICtrlListView_GetItemCount($List3) - 1
If StringInStr(Stringleft(_GUICtrlListView_GetItemText($List3, $i), StringInStr(_GUICtrlListView_GetItemText($List3, $i), '-') - 1),GUICtrlRead($combo23)) Then
$mpbz = StringSplit(_GUICtrlListView_GetItemText($List3, $i), "-")
$mpbzi &= $mpbz[2] & '|'
EndIf
$i += 1
WEnd
; ControlCommand($softname, "", $combo24, "DelString", 0)
GUICtrlSetData($combo24, "后缀|" & $mpbzi, "后缀")
[/au3]
不过这样做的效率在大数据量下很难保证,如果是sqlite,不如直接数据库操作获取文本来做 |
|