找回密码
 加入
搜索
查看: 1418|回复: 1

[GUI管理] 已经解决 怎么读取sqlite里面表的数据到listview

[复制链接]
发表于 2012-4-24 09:56:16 | 显示全部楼层 |阅读模式
本帖最后由 xin266 于 2012-4-24 10:26 编辑

怎么读取sqlite里面表的数据到listview ?
请高手给个例子谢谢
 楼主| 发表于 2012-4-24 10:27:10 | 显示全部楼层
_SQLite_Startup()
        _SQLite_Open($SQLite_Data_Path)
        _SQLite_Query(-1, "SELECT * FROM TestTable ORDER BY Chanpin DESC;", $hQuery)
        
        While _SQLite_FetchData ($hQuery, $aRow) = $SQLITE_OK
                MsgBox(1,$aRow[0],"")
                GUICtrlCreateListViewItem($aRow & "|" & "2" & "|" & "3" & "|" & "4", $ListView1)
                
        WEnd
        _SQLite_Close()
        
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-30 13:23 , Processed in 0.077577 second(s), 21 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表