标题:代码转换
取消只看楼主
guojun1119
Rank: 1
等 级:新手上路
帖 子:39
专家分:0
注 册:2012-9-9
结帖率:76.92%
 问题点数:0 回复次数:0 
代码转换
    Set db = OpenDatabase(App.Path & "\数据.MDB", False, False)
    SQL = "SELECT 名称"
    For i = 1 To from1.Listbox2.ListCount
        SQL = SQL & "," & from1.Listbox2.list(i - 1)
    Next
    SQL = SQL & " FROM 数据"
    Set rs1 = db.OpenRecordset(SQL, dbOpenDynaset)
    j = 1
    rs1.MoveFirst
    Do Until rs1.EOF
        For i = 1 To form1.Listbox1.ListCount
            If rs1.Fields(0) = form1.Listbox1.list(i - 1) Then
                j = i
                Exit For
            End If
        Next i
想把这段代码vb代码用C# 结合SQL Sever实现。
搜索更多相关主题的帖子: False 
2012-10-07 10:06



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-382650-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.049871 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved