以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  请问如何改资料?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=90192)

--  作者:TnT107
--  发布时间:2016/9/7 14:16:00
--  请问如何改资料?

请问如何改资料?

600109-----> 60-01-09   或 60/01/09  或 60x01x09

[此贴子已经被作者于2016/9/7 14:17:19编辑过]

--  作者:有点蓝
--  发布时间:2016/9/7 14:28:00
--  
Dim str As String = "600109"
str = str.Insert(4,"-").Insert(2,"-")
Output.Show(str )

--  作者:TnT107
--  发布时间:2016/9/7 14:46:00
--  
3Q!!
--  作者:TnT107
--  发布时间:2016/9/7 15:43:00
--  

请问我想把某列的值更换成

 

datatables("表A").replacefor("列1",[列1].Insert(4,"-").Insert(2,"-")) 为何不行??


--  作者:狐狸爸爸
--  发布时间:2016/9/8 9:48:00
--  

For each dr as  DataRow in DataTables("表A").DataRows

    dr("列1") = dr("列1").Insert(4,"-").Insert(2,"-")

Next


--  作者:tennis
--  发布时间:2016/9/8 10:28:00
--  
3Q!!