要同步更改列属性的设置:
http://www.foxtable.com/webhelp/topics/1477.htm
Dim 文件01 As WinForm.FileManager = e.Form.Controls("文件01")
文件01.CommandVisible = False
Dim ftp As New FTPClient
ftp.host = "8.136.146.235"
ftp.Account = "administrator"
ftp.password = "*******"
ftp.RootDir = "/ZTCY/YPJH/" & e.Form.Controls("单据编号").Value
文件01.FTPclient = ftp
DataTables("表名").DataCols("列名").FTPClient.Host = "8.136.146.235"
DataTables("表名").DataCols("列名").FTPClient.Account = "administrator"
DataTables("表名").DataCols("列名").FTPClient.password = "*******"
DataTables("表名").DataCols("列名").FTPClient.RootDir = "/ZTCY/YPJH/" & e.Form.Controls("单据编号").Value