Foxtable(狐表)用户栏目专家坐堂 → 求助,输入车次后如何输入对应车次的车站名


  共有8748人关注过本帖树形打印复制链接

主题:求助,输入车次后如何输入对应车次的车站名

帅哥哟,离线,有人找我吗?
sloyy
  1楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:九尾狐 帖子:2193 积分:13926 威望:0 精华:2 注册:2012/2/25 10:59:00
  发帖心情 Post By:2012/7/6 0:59:00 [显示全部帖子]

表a_Click

Dim i As Integer
Dim Values As String
Dim dr As DataRow

dr = DataTables("车次").Find("车次 = " & "'" & Tables("表A").Current("车次") & "'" )

If dr IsNot Nothing
    Dim wz As Integer = Tables("车次").FindRow(dr)
    If wz >= 0 Then
        Tables("车次").Position = wz
    End If
   
    For i=1 To Tables("车次").Cols.Count-1
        If Tables("车次").Current(Tables("车次").Cols(i).Name) >"" Then
            Values = Values & Tables("车次").Current(Tables("车次").Cols(i).Name) &"|"
        End If
    Next
    Tables("表A").Cols("终到站").ComboList= Values
End If

[此贴子已经被作者于2012-7-6 1:12:02编辑过]

 回到顶部