这句代码有错吗

来源:百度知道 编辑:UC知道 时间:2024/05/14 03:24:38
for i = 0 to file1.ListCount -1
i = file1.ListIndex
open dir1.drive & "\" & "file1.filename" for output as #1
print #1,ss
close #1
next

有错!

for i = 0 to file1.ListCount -1
file1.ListIndex = i
open dir1.drive & "\" & "file1.filename" for output as #1
print #1,ss
close #1
next

我也是初学者,只看出一个错