📄 formap.frm
字号:
VERSION 5.00
Begin VB.Form Form2
BorderStyle = 1 'Fixed Single
Caption = "数据库路径"
ClientHeight = 3435
ClientLeft = 45
ClientTop = 435
ClientWidth = 5730
Icon = "Formap.frx":0000
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3435
ScaleWidth = 5730
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Caption = "说明"
ForeColor = &H00FF8080&
Height = 855
Left = 240
TabIndex = 5
Top = 120
Width = 3855
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "选择数据库所在驱动器和文件夹后“确定”。"
ForeColor = &H00404040&
Height = 300
Index = 1
Left = 120
TabIndex = 6
Top = 360
Width = 3720
End
End
Begin VB.CommandButton Command2
Caption = "关闭"
Height = 320
Left = 4320
Picture = "Formap.frx":0CCA
TabIndex = 4
ToolTipText = "关闭"
Top = 2880
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 320
Left = 4320
Picture = "Formap.frx":1054
TabIndex = 3
ToolTipText = "确定"
Top = 2400
Width = 1095
End
Begin VB.Frame Frame4
Caption = "选择数据库所在文件夹"
ForeColor = &H00FF8080&
Height = 2055
Index = 0
Left = 240
TabIndex = 0
Top = 1200
Width = 3855
Begin VB.DirListBox Dir1
Height = 1140
Left = 120
TabIndex = 2
Top = 720
Width = 3615
End
Begin VB.DriveListBox Drive1
Height = 300
Left = 120
TabIndex = 1
Top = 360
Width = 3615
End
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error Resume Next
Dim t1
Dim t2
t1 = Drive1
t2 = Dir1
dxfs = Text1
ap = t2
acs = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + ap + "\fw.mdb;"
Open "ap.dat" For Random As #1
Put #1, , t1
Put #1, , t2
Put #1, , dxfs
Close
If ap1 = 1 Then
Unload Me
ap1 = 0
acs = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + ap + "\fw.mdb;"
frmLogin.服务登记.ConnectionString = acs
frmLogin.服务登记.RecordSource = "mm"
frmLogin.服务登记.Refresh
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1
End Sub
Private Sub Form_Load()
Text1 = dxfs
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -