7,763
社区成员
发帖
与我相关
我的任务
分享
Private Sub Form_Load()''窗体加载时读取
Dim i%
Dim FilePath As String
FilePath = Dir(SetFile)
If FilePath = "" Then
txt_Data.Text = ""
Else
Open SetFile For Input As #1
Input #1, tempData
Close 1
End If
End Sub
Private Sub Cmd_Ok_Click()''写入
Open SetFile For Output As #1
Write #1, tempData
Close #1
SetAttr SetFile, vbHidden
End Sub
Private Sub Form_Load()''窗体加载时读取
Dim i%
Dim FilePath As String
FilePath = Dir(SetFile)
If FilePath = "" Then
txt_Data.Text = ""
Else
if Dir(SetFile) <>"" then
Open SetFile For Input As #1
Input #1, tempData
Close 1
end if
End If
End Sub
Private Sub Cmd_Ok_Click()''写入
Open SetFile For Output As #1
Write #1, tempData
Close #1
SetAttr SetFile, vbHidden
End Sub