📄 form2.frm
字号:
VERSION 5.00
Begin VB.Form 历史温度数据
Caption = "历史温度数据"
ClientHeight = 3945
ClientLeft = 60
ClientTop = 345
ClientWidth = 4710
LinkTopic = "Form2"
ScaleHeight = 3945
ScaleWidth = 4710
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "清空全部"
Height = 495
Left = 1560
TabIndex = 1
Top = 3240
Width = 1455
End
Begin VB.ListBox List1
BackColor = &H8000000A&
Height = 3120
Left = 0
TabIndex = 0
Top = 0
Width = 4695
End
End
Attribute VB_Name = "历史温度数据"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
On Error GoTo IFerr
Kill "D:\temprecord.txt"
MsgBox "数据清除完毕"
Form2.Hide
Exit Sub
IFerr:
MsgBox "数据清除完毕"
End Sub
Private Sub Form_Load()
On Error GoTo lll
Open "D:\temprecord.txt" For Input As #1
Do While Not EOF(1)
Line Input #1, a
If a <> "" Then List1.AddItem a
Loop
Close #1
Exit Sub
lll:
MsgBox "数据不存在!"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -