以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]If e.Col.name In ("备注","警","责任部门","责任确认","结算价","结算批次","结算确认") Then 有什么错误? (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=66595) |
-- 作者:YTZN -- 发布时间:2015/4/10 9:23:00 -- [求助]If e.Col.name In ("备注","警","责任部门","责任确认","结算价","结算批次","结算确认") Then 有什么错误? 多谢! |
-- 作者:Bin -- 发布时间:2015/4/10 9:24:00 -- 不能这么写 select case e.col.name case "备注","警","责任部门","责任确认","结算价","结算批次","结算确认" \'其他代码 end select
|
-- 作者:YTZN -- 发布时间:2015/4/10 9:24:00 -- 表staredit: If MainTable.Name =e.Table.Name Then If e.Col.name In ("备注","警","责任部门","责任确认","结算价","结算批次","结算确认") Then Return End If e.Cancel=True endi
|
-- 作者:狐狸爸爸 -- 发布时间:2015/4/10 9:25:00 -- 这是表达式,不是代码,先暂停,学习基本的语法,帮助从这一节开始: http://www.foxtable.com/help/topics/0210.htm 也可以看视频: http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&Id=65606
正确的代码:
select case e.col.name case "备注","警","责任部门","责任确认","结算价","结算批次","结算确认" 代码..... end select |
-- 作者:ytzn -- 发布时间:2015/4/10 9:25:00 -- 多谢Bin老师! |