📄 pathfrm.frm
字号:
VERSION 5.00
Object = "{74848F95-A02A-4286-AF0C-A3C755E4A5B3}#1.0#0"; "actskn43.ocx"
Begin VB.Form pathfrm
BackColor = &H00FF8080&
Caption = "设置路径"
ClientHeight = 5100
ClientLeft = 60
ClientTop = 345
ClientWidth = 6225
LinkTopic = "Form1"
MDIChild = -1 'True
Moveable = 0 'False
ScaleHeight = 5100
ScaleWidth = 6225
Begin VB.CommandButton Command6
Caption = "保存路径"
Height = 495
Left = 2160
TabIndex = 16
Top = 4560
Width = 1815
End
Begin VB.CommandButton Command4
BackColor = &H00FF8080&
Caption = "修改"
Height = 375
Left = 4200
TabIndex = 7
Top = 2760
Width = 855
End
Begin VB.Frame Frame1
BackColor = &H00FF8080&
Caption = "路径设置"
Height = 4335
Left = 240
TabIndex = 0
Top = 120
Width = 5655
Begin VB.TextBox Text5
Height = 375
Left = 120
TabIndex = 15
Top = 3840
Width = 5415
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel5
Height = 255
Left = 240
OleObjectBlob = "pathfrm.frx":0000
TabIndex = 14
Top = 3600
Width = 1215
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel4
Height = 255
Left = 240
OleObjectBlob = "pathfrm.frx":0068
TabIndex = 13
Top = 2760
Width = 1455
End
Begin VB.TextBox Text4
Height = 375
Left = 120
TabIndex = 12
Top = 3000
Width = 5415
End
Begin VB.CommandButton Command5
Caption = "修改"
Height = 375
Left = 3960
TabIndex = 11
Top = 3480
Width = 855
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel3
Height = 255
Left = 240
OleObjectBlob = "pathfrm.frx":00D2
TabIndex = 10
Top = 1920
Width = 1815
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel2
Height = 255
Left = 240
OleObjectBlob = "pathfrm.frx":0142
TabIndex = 9
Top = 1080
Width = 1695
End
Begin ACTIVESKINLibCtl.SkinLabel SkinLabel1
Height = 255
Left = 240
OleObjectBlob = "pathfrm.frx":01B0
TabIndex = 8
Top = 240
Width = 1935
End
Begin VB.CommandButton Command3
BackColor = &H00FF8080&
Caption = "修改"
Height = 375
Left = 3960
TabIndex = 6
Top = 1800
Width = 855
End
Begin VB.CommandButton Command2
BackColor = &H00FF8080&
Caption = "修改"
Height = 375
Left = 3960
TabIndex = 5
Top = 960
Width = 855
End
Begin VB.CommandButton Command1
BackColor = &H00FF8080&
Caption = "修改"
Height = 375
Left = 3960
TabIndex = 4
Top = 150
Width = 855
End
Begin VB.TextBox Text3
Height = 375
Left = 120
TabIndex = 3
Top = 2160
Width = 5415
End
Begin VB.TextBox Text2
Height = 375
Left = 120
TabIndex = 2
Top = 1320
Width = 5415
End
Begin VB.TextBox Text1
Height = 375
Left = 120
TabIndex = 1
Top = 530
Width = 5415
End
End
End
Attribute VB_Name = "pathfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Command1_Click()
changepath.Show
changepath.Text1.Visible = True
changepath.Text2.Visible = False
changepath.Text3.Visible = False
changepath.Text4.Visible = False
changepath.Text5.Visible = False
End Sub
Private Sub Command2_Click()
changepath.Show
changepath.Text1.Visible = False
changepath.Text2.Visible = True
changepath.Text3.Visible = False
changepath.Text4.Visible = False
changepath.Text5.Visible = False
End Sub
Private Sub Command3_Click()
changepath.Show
changepath.Text1.Visible = False
changepath.Text2.Visible = False
changepath.Text3.Visible = True
changepath.Text4.Visible = False
changepath.Text5.Visible = False
End Sub
Private Sub Command4_Click()
changepath.Show
changepath.Text1.Visible = False
changepath.Text2.Visible = False
changepath.Text3.Visible = False
changepath.Text4.Visible = True
changepath.Text5.Visible = False
End Sub
Private Sub Command5_Click()
changepath.Show
changepath.Text1.Visible = False
changepath.Text2.Visible = False
changepath.Text3.Visible = False
changepath.Text4.Visible = False
changepath.Text5.Visible = True
End Sub
Private Sub Command6_Click()
Dim rdst As New ADODB.Recordset
rdst.Open "update path set 路径 = '" & Text1.Text & "' where 路径名 = '调查表文件'", g_conn
rdst.Open "update path set 路径 = '" & Text2.Text & "' where 路径名 = '相片'", g_conn
rdst.Open "update path set 路径 = '" & Text3.Text & "' where 路径名 = '宗地图'", g_conn
rdst.Open "update path set 路径 = '" & Text4.Text & "' where 路径名 = '控制资料'", g_conn
rdst.Open "update path set 路径 = '" & Text5.Text & "' where 路径名 = '规划图'", g_conn
Set rdst = Nothing
MsgBox "路径保存成功", vbOKOnly, "路径保存"
Me.Visible = False
End Sub
Private Sub Form_Load()
askn.ApplySkin Me.hWnd
Me.Top = 2200
Me.Left = 4500
Me.Width = 6225
Me.Height = 5900
Dim rdst As New ADODB.Recordset
rdst.Open "select * from path where 路径名 = '调查表文件'", g_conn
Text1.Text = rdst!路径
Set rdst = Nothing
rdst.Open "select * from path where 路径名 = '相片'", g_conn
Text2.Text = rdst!路径
Set rdst = Nothing
rdst.Open "select * from path where 路径名 ='宗地图'", g_conn
Text3.Text = rdst!路径
Set rdst = Nothing
rdst.Open "select * from path where 路径名 ='控制资料'", g_conn
Text4.Text = rdst!路径
Set rdst = Nothing
rdst.Open "select * from path where 路径名 ='规划图'", g_conn
Text5.Text = rdst!路径
Set rdst = Nothing
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -