📄 txtline_form.frm
字号:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3120
ClientLeft = 60
ClientTop = 420
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3120
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer1
Interval = 300
Left = 3240
Top = 2520
End
Begin VB.CommandButton Command2
Caption = "Command2"
Height = 375
Left = 2880
TabIndex = 2
Top = 1680
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "Command1"
Height = 375
Left = 360
TabIndex = 0
Top = 1680
Width = 2175
End
Begin VB.Label Label1
Caption = "Label1"
Height = 495
Left = 960
TabIndex = 1
Top = 600
Width = 3615
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim i As Long
Dim ddd As String
Private Sub Command2_Click()
Label1.Caption = ddd ' 在text1中显示数据。
End Sub
Private Sub Timer1_Timer()
i = i + 1
Open "D:\\mapXvb\VB5Sample\\test.txt" For Input As #1
For x = 1 To i
On Error GoTo ov
Line Input #1, ddd
Next
Label1.Caption = ddd
ov:
Close #1
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -