📄 frmchoice.frm
字号:
VERSION 5.00
Begin VB.Form Frmchoice
Caption = "设置数据库备份的向导"
ClientHeight = 4185
ClientLeft = 60
ClientTop = 345
ClientWidth = 5415
Icon = "Frmchoice.frx":0000
LinkTopic = "Form3"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4185
ScaleWidth = 5415
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame2
Caption = "备份库文件的存放路径"
Height = 1095
Left = 240
TabIndex = 8
Top = 2280
Width = 5055
Begin VB.CommandButton Cmdbrowse
Caption = "浏览"
Height = 375
Left = 3960
TabIndex = 10
Top = 360
Width = 855
End
Begin VB.TextBox txt_backup_path
Height = 375
Left = 480
TabIndex = 9
Text = "txt_backup_path"
Top = 360
Width = 3375
End
End
Begin VB.CommandButton cmdNav
Caption = "帮助"
Height = 312
Index = 0
Left = 240
MaskColor = &H00000000&
TabIndex = 7
Tag = "100"
Top = 3720
Width = 1092
End
Begin VB.CommandButton cmdNav
Cancel = -1 'True
Caption = "取消"
Height = 312
Index = 1
Left = 1920
MaskColor = &H00000000&
TabIndex = 6
Tag = "101"
Top = 3720
Width = 1092
End
Begin VB.CommandButton cmdNav
Caption = "下一步(&N)"
Height = 312
Index = 3
Left = 3120
MaskColor = &H00000000&
TabIndex = 5
Tag = "103"
Top = 3720
Width = 1092
End
Begin VB.CommandButton cmdNav
Caption = "完成(&F)"
Height = 312
Index = 4
Left = 4320
MaskColor = &H00000000&
TabIndex = 4
Tag = "104"
Top = 3720
Width = 1092
End
Begin VB.Frame Frame1
Caption = "选择备份的数据库"
Height = 1215
Left = 240
TabIndex = 0
Top = 840
Width = 5055
Begin VB.OptionButton OptSql
Caption = "SQL 数据库"
Height = 255
Left = 2760
TabIndex = 2
Top = 600
Width = 1335
End
Begin VB.OptionButton OptOracle
Caption = "ORACLE数据库"
Height = 255
Left = 480
TabIndex = 1
Top = 600
Value = -1 'True
Width = 1815
End
End
Begin VB.Label Label1
Caption = "设置数据库备份的类别:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H8000000D&
Height = 255
Left = 360
TabIndex = 3
Top = 360
Width = 3015
End
End
Attribute VB_Name = "Frmchoice"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmdbrowse_Click()
Dim strFileName As String
Frmdir.Show 1
End Sub
Private Sub cmdNav_Click(Index As Integer)
Select Case Index
Case 0
Case 1
Unload Me
Case 3
Call Save_regedit
If OptOracle.Value = True Then
Frm_oracle_set.Show
Else
Frm_Sql_set.Show
End If
Unload Me
Case 4
Call Save_regedit
Tempstr = "完成自动备份数据库类型设置。"
Call writerizhi(Tempstr, Len(Tempstr))
Unload Me
End Select
End Sub
Private Sub Form_Load()
Dim Strtemp As String
CenterForm Me
On Error GoTo errhandler
OptOracle.Value = GetSetting("databackup", "sysinformation", "OptOracle")
OptSql.Value = GetSetting("databackup", "sysinformation", "OptSql")
txt_backup_path.Text = GetSetting("databackup", "sysinformation", "txt_backup_path")
Exit Sub
errhandler:
OptOracle.Value = True
OptSql.Value = False
txt_backup_path.Text = App.Path
End Sub
Private Sub Save_regedit()
SaveSetting "databackup", "sysinformation", "OptOracle", OptOracle.Value
SaveSetting "databackup", "sysinformation", "OptSql", OptSql.Value
SaveSetting "databackup", "sysinformation", "txt_backup_path", Trim(txt_backup_path.Text)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -