do loop出错

来源:百度知道 编辑:UC知道 时间:2024/06/04 00:39:05
Do
jc = 1
Dim a As New ClsAPIMD5
If (a.HashFile(File1.List(jc))) Then
jc = jc + 1
If Dir(App.Path + "\bin\" + Text2) <> "" Then
List1.AddItem "路径:" + Text1 + ",md5:" + Text2
End If
Loop Until jc = File1.ListCount
总是提示没有"Do"

少了个【End If】
改为:
Do
jc = 1
Dim a As New ClsAPIMD5
If (a.HashFile(File1.List(jc))) Then
jc = jc + 1
If Dir(App.Path + "\bin\" + Text2) <> "" Then
List1.AddItem "路径:" + Text1 + ",md5:" + Text2
End If
End If
Loop Until jc = File1.ListCount