帮助文档中有个动态修改表结构的说明,但是没有找到通过代码查看表结构指引;
如果作为系统管理员,我想在动态修改表构之前让系统给出提示,修改前的表构,要怎么做?

此主题相关图片如下:表结构.jpg

遍历列即可
For Each co1 As DataCol In DataTables("表A").DataCols
If co1.IsString Then
output.show(co1.Name & ",字符," & co1.MaxLength)
ElseIf co1.IsNumeric Then
If co1.datatype.Tostring = "System.Int32" Then
output.show(co1.Name & ",整数")
ElseIf co1.datatype.Tostring = "System.Double" Then
output.show(co1.Name & ",双精度")
End If
ElseIf co1.IsDate Then
output.show(co1.Name & ",日期")
ElseIf co1.IsBoolean Then
output.show(co1.Name & ",逻辑")
End If
Next
我试试先
[此贴子已经被作者于2024/1/5 11:27:33编辑过]