Private Sub Timer1_Timer()
Static b '定义静态变量
'''''''''当command进入屏幕内,将从头出,
Command1.Left = Command1.Left + 50
If Command1.Left > Form1.Width Then
Command1.Left = 0
Open "C:\1.txt" For Input As #1
For i = 0 To b
If EOF(1) Then
close #1
b = 0
exit sub
End If
Input #1, a
Next
Command1.Caption = a
b = b + 1
End If
Close #1
End Sub