标题:求助:GPS程序段调试不出来
取消只看楼主
crystal_2345
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2006-11-22
 问题点数:0 回复次数:1 
求助:GPS程序段调试不出来

求助啊!帮我看看这个GPS的VB程序段


大侠们,帮我看看这个程序吧,我是第一次接触VB,不懂怎么回事。
Private Sub GetGpsPath()
Dim dbs As Database

On Error GoTo errorhandle
strPath = Ini_GetPath
If strPath = "" Then
strPath = App.Path + "C:\Mestudy\Data\"
End If
Set dbs = DBEngine.Workspaces(0).OpenDatabase(strPath + "GPS.MDB")
dbs.Close
Ini_SavePath strPath
Exit Sub
errorhandle:
strPath = GetFileName("GPS.mdb", "GPS.mdb", True)
If strPath = "" Or right(strPath, 7) <> "GPS.mdb" Then
MsgBox "无法找到Gps.mdb数据库!"
End
Else
strPath = left(strPath, Len(strPath) - 7)
Resume
End If
End Sub
为什么我运行后一直显示“无法找到Gps.mdb数据库!”??帮我查查错吧!

搜索更多相关主题的帖子: 程序段 GPS strPath dbs 
2006-11-22 17:38
crystal_2345
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2006-11-22
得分:0 

不懂啊,怎么用这个函数?

2006-11-22 18:38



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




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

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