CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
山寨机中的战斗机! 程序优化工程师到底对IT界有没有贡献
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Web 开发 >  ASP

帮我找找这句话的语法错误

楼主yanboneck(小小菜)2003-05-02 10:52:37 在 Web 开发 / ASP 提问

If   (Request.Form("a&"cstr(i)"&"cstr(j)"")="no"   and   Rs("a&"cstr(i)"&"cstr(j)"")<Rs("maxnum")   and   Rs("a&"cstr(i)"&"cstr(j)"")>-1)then  
  提示这一行缺少')' 问题点数:5、回复次数:7Top

1 楼liuxk(冰山上的心)回复于 2003-05-02 11:01:40 得分 0

("a&"cstr(i)"&"cstr(j)"")  
  把括号的实际结果写出来,让人家知道你要得到什么?Top

2 楼yanboneck(小小菜)回复于 2003-05-02 11:03:17 得分 0

Rs("a10")...Rs("a71")Top

3 楼yanboneck(小小菜)回复于 2003-05-02 11:04:02 得分 0

For   i=1   to   7  
      For   j=0   to   1  
  If   (Request.Form("a&"cstr(i)"&"cstr(j)"")="no"   and   Rs("a&"cstr(i)"&"cstr(j)"")<Rs("maxnum")   and   Rs("a&"cstr(i)"&"cstr(j)"")>-1)then  
  Response.Write"<script>   alert('对不起,星期一上午已经有人预约,暂不能取消!');</Script>"  
  Else   If   Request.Form("a&"cstr(i)"&"cstr(j)"")="no"   and   Rs("a&"cstr(i)"&"cstr(j)"")=Rs("maxnum")   then  
  Rs("a&"cstr(i)"&"cstr(j)"")=-1  
  End   If  
  End   If  
  If   Request.Form("a&"cstr(i)"&"cstr(j)"")="yes"   and   Rs("a&"cstr(i)"&"cstr(j)"")=-1   then  
  Rs("a&"cstr(i)"&"cstr(j)"")=trim(Request.Form("maxnum"))  
  Else   If   Request.Form("a&cstr(i)&cstr(j)")="yes"   and   Rs("a&"cstr(i)"&"cstr(j)"")>-1   then  
  Rs("a&"cstr(i)"&"cstr(j)"")=Rs("a&"cstr(i)"&"cstr(j)"")+trim(Request.Form("maxnum"))-Rs("maxnum")  
  End   If  
  End   If  
  Next  
  NextTop

4 楼ShiningstarHu(Shining_star)回复于 2003-05-02 11:05:51 得分 0

If   (Request.Form("a&"cstr(i)"&"cstr(j)"")="no"   and   Rs("a&"cstr(i)"&"cstr(j)"")<Rs("maxnum")   and   Rs("a&"cstr(i)"&"cstr(j)"")>-1)then  
   
  改成  
   
  If   (Request.Form("a"   &   cstr(i)   &   cstr(j))="no"   and   Rs("a"   &   cstr(i)   &   cstr(j))<Rs("maxnum")   and   Rs("a"   &   cstr(i)   &   cstr(j))>-1)thenTop

5 楼yanboneck(小小菜)回复于 2003-05-02 11:06:20 得分 0

试一下Top

6 楼liuxk(冰山上的心)回复于 2003-05-02 11:08:16 得分 5

If   (Request.Form("a"+cstr(i)+cstr(j))="no"   and   Rs("a"+cstr(i)+cstr(j))<Rs("maxnum")   and   Rs("a"+cstr(i)+cstr(j))>-1)then  
   
  试试这段  
  Top

7 楼yanboneck(小小菜)回复于 2003-05-02 11:12:02 得分 0

通了,thank   for   everyone!Top

相关问题

  • 请问这句话,有什么语法错误!
  • 从字符串转换为 datetime 时发生语法错误,这句话该怎么改?在线等!!
  • 语法错误???
  • 语法错误
  • 语法错误
  • 语法错误???
  • String mdir:=ExtractFilePath(Application.ExeName);这句话的错误?
  • FlowControl语法错误
  • insert into语法错误
  • insert语法错误?

关键词

  • cstr
  • thenrs
  • maxnum
  • request
  • rs
  • form
  • then
  • and rs

得分解答快速导航

  • 帖主:yanboneck
  • liuxk

相关链接

  • Web开发类图书

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo