以下是引用nddz_yj在2015/7/22 9:45:00的发言:上面的命令试了一下 可以删除整张表
有没有只删除内容 不删除表达方式
谢谢
For Each dc As DataCol In DataTables("表A").DataCols
Dim pi As System.Reflection.PropertyInfo = dc.Gettype.getproperty("IsTemporary",Reflection.BindingFlags.nonpublic Or Reflection.BindingFlags.Instance)
If pi.getvalue(dc,Nothing) = False
DataTables("表A").ReplaceFor(dc.Name, Nothing)
End If
Next