以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  如果某列的值包含“aa”or “bb”等。。。代码该怎么写呢?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=34818)

--  作者:jinzhengbe
--  发布时间:2013/6/17 2:26:00
--  如果某列的值包含“aa”or “bb”等。。。代码该怎么写呢?

If e.DataRow("lable2")包含"apm" or e.DataRow("lable2")包含"apm" e.DataRow("lable2")包含"apm" Then
e.DataRow("qu")=1

else if

e.DataRow("qu")=1

end if

 

上面包含这个 代码应该怎么写呢?请各位大侠指点

 

 


--  作者:lsy
--  发布时间:2013/6/17 6:46:00
--  

If e.DataRow("第一列").Contains("AA") Then
    e.DataRow("第二列") = "BB"
End If