7,763
社区成员
发帖
与我相关
我的任务
分享
Open fname For Input As #1 ' 打开文件。
Do While Not EOF(1) ' 循环至文件尾。
Line Input #1, fline ' 读入一行数据并将其赋予fline变量。
Form1.Print fline ' 为了测试 在窗口中显示数据。到这里都还正常
str = Split(str1, " ", -1, 1) ’空格为分隔符 读取全部字符串
if ubound(str)>-1 then'ubound(str)=-1,如果str1=“888=”
If str(0) = "111" then ’这里就不对了 提示 错误 9下标越界
Print str(0)
end if
End If