功能是根据传过来的参数做相应的判断操作。。
在传参的时候有可能是三个参数中的一个、两个或三个。
不太明白为什么前两个不起作用,最后一个起作用。
aaa <> null 与 aaa <> "" 之间应该是"and"关系吧。
为什么写"or"反而起作用呢?
1,没有报错但也不起作用。
复制内容到剪贴板
代码:
aaa=trim(request("a"))
bbb=trim(request("b"))
ccc=trim(request("c"))
if aaa <> null or bbb <> null or ccc <> null then
if aaa <> null or aaa <> "" then
cc_rs("a")=aaa
end if
if bbb <> null or bbb <> "" then
cc_rs("b")=bbb
end if
if ccc <> null or ccc <> "" then
cc_rs("c")=ccc
end if
cc_rs.update
end if2,同上。
复制内容到剪贴板
代码:
aaa=trim(request("a"))
bbb=trim(request("b"))
ccc=trim(request("c"))
if aaa <> null or bbb <> null or ccc <> null then
if aaa <> null and aaa <> "" then
cc_rs("a")=aaa
end if
if bbb <> null and bbb <> "" then
cc_rs("b")=bbb
end if
if ccc <> null and ccc <> "" then
cc_rs("c")=ccc
end if
cc_rs.update
end if3,这是起作用的。
复制内容到剪贴板
代码:
aaa=trim(request("a"))
bbb=trim(request("b"))
ccc=trim(request("c"))
if aaa <> null or aaa <> "" or bbb <> null or bbb <> "" or ccc <> null or ccc <> "" then
if aaa <> null or aaa <> "" then
cc_rs("a")=aaa
end if
if bbb <> null or bbb <> "" then
cc_rs("b")=bbb
end if
if ccc <> null or ccc <> "" then
cc_rs("c")=ccc
end if
cc_rs.update
end if[
本帖最后由 yaokongshafa 于 2008-8-12 11:46 编辑 ]