FileOpen.frm
复制内容到剪贴板
代码:
Private Sub Command1_Click()
Dim Str, Sav As String
If Len(File1.FileName) <> 0 Then
Str = ""
Open File1.Path & File1.FileName For Input As #1
Do While Not (EOF(1))
Line Input #1, Sav
Str = Str + Sav + vbCrLf
Loop
Close #1
FileEdit.Text1.Text = Str
Else
MsgBox "不能为空!"
End If
FileEdit.Label1.Caption = File1.Path & File1.FileName
FileOpen.Hide
End Sub
Private Sub Command2_Click()
FileOpen.Hide
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End SubFileSave.frm
复制内容到剪贴板
代码:
Private Sub Command1_Click()
Open File1.Path & Text1.Text For Output As #1
Print #1, FileEdit.Text1.Text
Close #1
FileSave.Hide
End Sub
Private Sub Command2_Click()
FileSave.Hide
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End SubFileEdit
复制内容到剪贴板
代码:
Private Sub Command1_Click()
FileOpen.Show
End Sub
Private Sub Command2_Click()
FileSave.Show
End Sub
Private Sub Command3_Click()
End
End Sub