以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]如何获取表中列的数据类型?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=62067)

--  作者:pcxjxjhkw
--  发布时间:2014/12/24 21:04:00
--  [求助]如何获取表中列的数据类型?
如题。
for each dc as datecol in dt.datacols
MessageBox.Show(dc.type)   \'\'报错
next




--  作者:有点甜
--  发布时间:2014/12/24 21:07:00
--  
For Each dc As DataCol In DataTables("表A").datacols
    MessageBox.Show(dc.DataType.Name)   \'\'报错
Next

--  作者:pcxjxjhkw
--  发布时间:2014/12/24 21:11:00
--  
谢谢
--  作者:wyz20130512
--  发布时间:2014/12/24 22:20:00
--  回复:(有点甜)For Each dc As DataCol In DataTabl...
列的这个属性在帮助中并没有提到呀!!