If e.DataCol.Name = "项目名称" Then If e.NewValue > "" Then Dim ftp1 As new ftpclient ftp1.host="192.168.1.102" ftp1.Account = "city" ftp1.password = "city" If ftp1.DirExists("/" & e.NewValue & "'"\"客户文件") = False Then ftp1.MakeDir("/" & e.NewValue & "'"\"客户文件")