奇怪的问题

bhut 2003-08-20 08:12:44
用vbscript,这样的语句
if not(biscal) then
response.write("a")
else
response.write("b")
end if
biscal=0的时候执行的结果没问题
biscal=1的时候却不能到达else后面的语句
改成
if not(biscal) then
response.write("a")
else if 1 then
……
也不执行任何语句
if end if的配对都正确,biscal也肯定等于1
...全文
25 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
pp4u 2003-08-21
  • 打赏
  • 举报
回复
if biscal=1 then
ttt2 2003-08-21
  • 打赏
  • 举报
回复
up
qdlanghua 2003-08-21
  • 打赏
  • 举报
回复
if biscal=1 then
response.write("a")
else
response.write("b")
end if
hengxin54 2003-08-20
  • 打赏
  • 举报
回复
if not biscal then
....
else
....
end if

if bisal=1 then
....
elseif bisal=0 then
....
end if
junches 2003-08-20
  • 打赏
  • 举报
回复
我认为你不要用C语言的思维来做VB程序,这样很容易出错的,
你用 biscal=1 biscal=0不行吗?

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧