解释几句VB的语句 Do While Not EOF(1)
PrivateSubForm_Load()'读排行榜文件并显示DimlAsIntegerDimtt(0To2)AsIntegerOpenApp.Path&"\Record...
Private Sub Form_Load() '读排行榜文件并显示
Dim l As Integer
Dim tt(0 To 2) As Integer
Open App.Path & "\Record.txt" For Input As #1
l = -1
Do While Not EOF(1)
l = l + 1
Input #1, tt(l)
Loop
Close #1
Label3(0).Caption = tt(0)
Label3(1).Caption = tt(1)
Label3(2).Caption = tt(2)
End Sub 展开
Dim l As Integer
Dim tt(0 To 2) As Integer
Open App.Path & "\Record.txt" For Input As #1
l = -1
Do While Not EOF(1)
l = l + 1
Input #1, tt(l)
Loop
Close #1
Label3(0).Caption = tt(0)
Label3(1).Caption = tt(1)
Label3(2).Caption = tt(2)
End Sub 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询