|
发表于 2020-5-21 17:15:01
|
显示全部楼层
Dim n1, n2, n3'测试一下
Private Sub Form_Load()'读积分
If Dir("c:\a.txt") = "" Then Exit Sub
Open "c:\a.txt" For Input As 1
Input #1, n1, n2, n3
Close
Text1 = n1: Text2 = n2: Text3 = n3
End Sub
Private Sub Form_Unload(Cancel As Integer)'存积分
Open "c:\a.txt" For Output As 1
Write #1, Text1, Text2, Text3
Close
End Sub |
|