以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 判断包含字符 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=145092) |
-- 作者:andyd -- 发布时间:2020/1/8 8:14:00 -- 判断包含字符 如果top_c字段包含字母W,就在另一个字段写W,在DataColChanged事件, Dim dr As DataRow = e.DataRow Select Case e.DataCol.Name Case "top_c" If Instr(dr("top_c"),"W") > 0 Then dr("qt_1") = "W" End If End Select 这样写没效果,该怎么写呢?
[此贴子已经被作者于2020/1/8 8:50:31编辑过]
|
-- 作者:有点蓝 -- 发布时间:2020/1/8 8:49:00 -- 先看看:http://www.foxtable.com/webhelp/topics/1522.htm If e.DataCol.Name = "top_c" if e.newvalue > "" andalso e.newvalue.contains("W") then e.DataRow("要求11") = "W" End If End If |