Foxtable(狐表)用户栏目专家坐堂 → 帮忙看看这段代码错哪里了?


  共有2462人关注过本帖树形打印复制链接

主题:帮忙看看这段代码错哪里了?

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107672 积分:547681 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2015/8/16 19:37:00 [显示全部帖子]

改一下

Dim hasFalse as boolean =false

For Each File As String In FileSys.GetFiles("c:\as\")
    If ftp.Upload("file,"\aa\" ") = True Then      
    Else
    hasFalse = true


End If

Next

if hasFalse then

Messagebox.show("有文件上传失败!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)

else

Messagebox.show("上传完成!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)

end if

[此贴子已经被作者于2015/8/16 19:37:08编辑过]

 回到顶部
帅哥,在线噢!
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107672 积分:547681 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2015/8/16 20:47:00 [显示全部帖子]

Dim hasFalse as boolean =false

For Each File As String In FileSys.GetFiles("c:\as\")
    
If ftp.Upload(file, "/aa/" & FileSys.GetName(file)) = True  Then      
    Else
    hasFalse = true


   End If

Next

这一段用你改过的那段


 回到顶部