form2.frm
来自「毕业设计 单片机 采集温度rs232上传 电脑显示温度曲线 包含源码 可以数据」· FRM 代码 · 共 64 行
FRM
64 行
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 + =
减小字号Ctrl + -
显示快捷键?