以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  做入库单时候怎么约定不是列表上显示的就输入不进去  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=61810)

--  作者:狐狸爸爸
--  发布时间:2014/12/19 16:12:00
--  
在ValidateEdit或DataColChanging事件进行验证判断:

http://www.foxtable.com/help/topics/0617.htm
http://www.foxtable.com/help/topics/0624.htm


--  作者:有点甜
--  发布时间:2014/12/19 16:14:00
--  

Dim s As String = "123"

Dim str As String = "1|2|3|4|5"

If ("|" & str & "|").Contains(s) = False Then

    msgbox("不行")

End If


--  作者:菲舍尔
--  发布时间:2014/12/19 17:43:00
--  

直接输入设成false就是了