以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 求助: (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=72229) |
-- 作者:yancheng -- 发布时间:2015/7/26 12:43:00 -- 求助: 在datacolchanged ,表事件中写入。请问怎么改? Select Case e.DataCol.Name Case "进货日期","进货批次","操作员","合同编号","供应商编号" Dim drs() As String = {"进货日期","进货批次","操作员","合同编号","供应商编号"} For Each dr As String In drs DataTables("采购进货").ReplaceFor("\'" & DataCol("dr") & "\'" ,e.DataRow(dr) ,"进货批次 = \'" & e.DataRow("进货批次") & "\'") Next End Select
|
-- 作者:yancheng -- 发布时间:2015/7/26 12:44:00 -- DataTables("采购进货").ReplaceFor("\'" & DataCol("dr") & "\'" , 这个位置不对,应该怎么写呢?
|
-- 作者:大红袍 -- 发布时间:2015/7/26 14:24:00 -- DataTables("采购进货").ReplaceFor(dr, e.DataRow(dr), "进货批次 = \'" & e.DataRow("进货批次") & "\'") |