.NET Framework 版本:4.0.30319.42000
Foxtable 版本:2022.8.18.1
错误所在事件:自定义函数,批量获取文件夹内容
详细错误信息:
调用的目标发生了异常。
目录名称无效。
Dim e = args(0)
Dim lj As String = e.Form.Controls("路径").Text
Dim fl As String = e.Form.Controls("分类").Text
'Dim lj1 As String = lj
For Each File As String In FileSys.GetFiles(lj)
Dim r As DataRow = DataTables("产品_图库资源").AddNew()
r("原始_文件名") = FileSys.GetName(File)
r("日期") = Date.Today
r("分类") = fl
For Each dir2 As String In FileSys.GetDirectories(File) '如果有子目录
' Dim r As DataRow = DataTables("产品_图库资源").AddNew()
r("原始_文件名") = FileSys.GetName(File)
r("日期") = Date.Today
r("分类") = fl
Next
Next