GUICtrlCreateListViewItem横向中如何读取数据库中某一字段数据
本帖最后由 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 改下标题,以利于问题解决后便于搜索。
页:
[1]