免费获取|
论文天下网
  • 论文天下网 |
  • 原创毕业论文 |
  • 论文范文 |
  • 论文下载 |
  • 计算机论文 |
  • 论文降重 |
  • 毕业论文 |
  • 外文翻译 |
  • 免费论文 |
  • 开题报告 |
  • 心得体会 |

当前位置:论文天下网 -> 免费论文 -> 计算机论文

公交车查询系统+vb(五)

ix(0, NC + 2) = "备注"
    .ColWidth(0) = 200
    .ColWidth(NC + 1) = 1000
    .FixedRows = 1
    For i = 1 To NC
      .ColAlignment(i) = 0
    Next i
    .FillStyle = flexFillSingle
    .Col = 0
    .Row = 0
    .RowSel = 1
    .ColSel = .Cols - 1
    .CellAlignment = 4
    .Row = 1
    End With
    Next
End Sub

Public Sub showdata(num As Integer)
'用于显示按车站名进行的查询
showtitle (num)
Dim j As Integer
Dim i As Integer

Dim mrc0 As ADODB.Recordset
Set mrc0 = New ADODB.Recordset
 Set mrc0 = ExecuteSQL(txtsql)
 If mrc0.EOF = False Then
   mrc0.MoveFirst
   With MSF1(num)
    .Rows = 2
    .Row = 1
    Do While Not mrc0.EOF
     .Rows = .Rows + 1
     For i = 1 To mrc0.Fields.Count
       If mrc0.Fields(i - 1) <> "Null" Then
      .TextMatrix(.Row, i - 1) = mrc0.Fields(i - 1)
      End If
     Next i
      .Row = .Row + 1
     mrc0.MoveNext
    Loop
 End With
 End If
 
  Set mrc0 = Nothing
End Sub


Public Sub showSEdata(s As String, e As String, numb As Integer)
'用于显示按起始站和终点站进行的查询
'其思路是扫描整个数据库,如果在一条记录中有起点站和终点站则把该记录加到列表中
'该过程用到了递归主要是由于起始站和终点站可以互换
digein = digein + 1 ' 用于记录递归次数
If digein = 3 Then '第三次递归的时候,退出
  a = MsgBox("没有直达的车次!您是否需要转车?", vbInformation + vbOKCancel, "询问")
  If a = vbOK Then
    Label5.Visible = True
    Cbm.Visible = True
    MSF1(0).Visible = False
  End If
Exit Sub
End If
showtitle (numb)
Dim j As Integer
Dim i As Integer
Dim m As Integer
Dim k As Integer
Dim ball As Boolean
Dim mrc As ADODB.Recordset
Set mrc = New ADODB.Recordset
 Set mrc = Adodc1.Recordset
   mrc.MoveFirst
   With MSF1(numb)
    .Rows = 2
    .Row = 1
    Do While Not mrc.EOF
    ball = False
    For m = 1 To NC
      If Text2(m).Text = Trim(s) Then
        ball = True
       Exit For
      End If
    Next
    If ball = True Then
    For k = m To NC
      If Text2(k).Text = Trim(e) Then
          Exit For
       End If
    Next
    End If
    If ball = True And k <> NC + 1 Then
     .Rows = .Rows + 1
     For i = 1 To mrc.Fields.Count
       If mrc.Fields(i - 1) <> "Null" Then
      .TextMatrix(.Row, i - 1) = mrc.Fields(i - 1)
      End If
     Ne

首页 上一页 2 3 4 5 6 7 下一页 尾页 5/7/7

相关论文
上一篇:VB工资管理系统 下一篇:电子教务管理系统vb
推荐论文 本专业最新论文
Tags:公交车 查询系统 access 源代码 论文 执行 程序 答辩 ppt 开题 报告 外文 翻译 【返回顶部】

相关栏目

自动化相关
计算机论文
工程管理论文
法律论文
医学论文
人力资源
电子专业
电气工程
英语论文
行政管理
电子商务
社科文学
教育论文
物流专业
金融专业
财务管理
会计专业
化学化工材料科学
电子通信
环境科学
经济类
机械模具类
报告,总结,申请书
其他专业论文


关于我们 | 联系方式 | 论文说明 | 网站地图 | 免费获取 | 钻石会员 | 原创毕业论文

 

论文天下网提供论文检测,论文降重,论文范文,论文排版,网站永久域名WWW.GEPUW.NET

本站部分文章来自网友投稿上传,如发现侵犯了您的版权,请联系指出,本站及时确认并删除  E-mail: 893628136@qq.com

Copyright@ 2009-2022 GEPUW.NET 论文天下网 版权所有