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

[系统综合] GUICtrlCreateListViewItem横向中如何读取数据库中某一字段数据

  [复制链接]
发表于 2012-4-17 23:27:27 | 显示全部楼层 |阅读模式
本帖最后由 another 于 2012-4-18 15:47 编辑

请教高手。下面红色部份要怎样写才能不出错?
$RS = ObjCreate("ADODB.Recordset")
$RS.ActiveConnection = $conn
$RS.Open("Select * from test where Class = 1 ORDER BY Name");执行Sql语句
GUICtrlCreateListViewItem( _
        "While Not $RS.eof And Not $RS.bof" & _
        "If @error = 1 Then ExitLoop" & _
        "$RS.Fields(1).value" & _
        "$RS.movenext" & _
        "WEnd", $ListView2)

$RS.close
发表于 2012-4-17 23:41:00 | 显示全部楼层
改下标题,以利于问题解决后便于搜索。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-20 16:50 , Processed in 0.071911 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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