Foxtable(狐表)用户栏目专家坐堂 → 求一段代码


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

主题:求一段代码

帅哥哟,离线,有人找我吗?
wealthwind
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:三尾狐 帖子:660 积分:3965 威望:0 精华:0 注册:2014/3/16 20:34:00
求一段代码  发帖心情 Post By:2014/4/19 14:42:00 [显示全部帖子]

Dim ftp1 As New FtpClient
ftp1.Host="120.198.124.195"
ftp1.Account = "und8042"
ftp1.Password = "und8042ssa"
If ftp1.DeleteFile("\" & e.form.controls("TextBox2").text  & "-" & e.form.controls("TextBox3").text & "-" & e.form.controls("TextBox4").text  & ".html") = True Then
    Messagebox.show("删除完成!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
Else
    Messagebox.show("删除失败!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If


求执行以上代码后,如果删除完成,则执行以下代码;


With Tables("个案申请")
    If .Current IsNot Nothing Then
        .Current.Delete
    End If
End With

 回到顶部