📄 data_out1.frm
字号:
VERSION 5.00
Begin VB.Form data_out1
BorderStyle = 4 'Fixed ToolWindow
ClientHeight = 4335
ClientLeft = 45
ClientTop = 270
ClientWidth = 7815
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4335
ScaleWidth = 7815
ShowInTaskbar = 0 'False
StartUpPosition = 3 'Windows Default
Begin VB.PictureBox Picture1
BackColor = &H00FFE09E&
Height = 4335
Left = 0
Picture = "data_out1.frx":0000
ScaleHeight = 4275
ScaleWidth = 2475
TabIndex = 6
TabStop = 0 'False
Top = 0
Width = 2535
Begin VB.Image Image1
Height = 600
Left = 120
Picture = "data_out1.frx":3A064
Stretch = -1 'True
Top = 240
Width = 600
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "数据导出"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 375
Index = 0
Left = 990
TabIndex = 9
Top = 495
Width = 1335
End
Begin VB.Shape Shape2
BorderColor = &H0000FF00&
BorderWidth = 2
Height = 15
Left = 120
Top = 1000
Width = 2055
End
Begin VB.Shape Shape1
BorderColor = &H000000FF&
BorderWidth = 2
Height = 15
Left = 120
Top = 960
Width = 2175
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = " 请您输入欲导出的文件名"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 1335
Left = 120
TabIndex = 7
Top = 1200
Width = 1695
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "数据导出"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 375
Index = 1
Left = 960
TabIndex = 10
Top = 480
Width = 1335
End
End
Begin VB.DriveListBox Drive1
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 2640
TabIndex = 5
Top = 0
Width = 2535
End
Begin VB.DirListBox Dir1
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2790
Left = 2640
TabIndex = 4
Top = 360
Width = 2535
End
Begin VB.FileListBox File1
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 3015
Left = 5280
Pattern = "*.fdd"
TabIndex = 3
Top = 120
Width = 2535
End
Begin VB.CommandButton Command2
Caption = "选 择(&Y)"
Default = -1 'True
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3840
TabIndex = 2
Top = 3840
Width = 1815
End
Begin VB.CommandButton Command4
Cancel = -1 'True
Caption = "取 消(&C)"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5880
TabIndex = 1
Top = 3840
Width = 1815
End
Begin VB.TextBox Text1
Height = 375
Left = 4680
TabIndex = 0
Text = "backupfile"
Top = 3360
Width = 3135
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
Caption = "请在此输入文件名:"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 255
Left = 2640
TabIndex = 8
Top = 3360
Width = 1935
End
End
Attribute VB_Name = "data_out1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public yesno As Boolean
Public ff As String
Private Sub Command2_Click()
If Len(Trim(Text1.Text)) <> 0 Then
If Right(Dir1.Path, 1) = "\" Then ff = Dir1.Path & Text1.Text & ".fdd" Else ff = Dir1.Path & "\" & Text1.Text & ".fdd"
If FileExists(ff) = True Then
MsgBox "已有同名文件,请您重新更换文件名", vbOKOnly Or vbInformation, "提示"
Exit Sub
Text1.SetFocus
End If
yesno = True
Unload Me
Else
MsgBox "不能输入空文件", vbOKOnly Or vbInformation, "提示"
Text1.SetFocus
End If
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub Form_Load()
yesno = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -