BUG? BUG! 还是什么……

clanboo 2004-01-24 03:02:55
我调用的时候<%Call ShowDate(A,2,2,2)%>却取不出StrTmp的值。怪事了。 昨天晚上写的时候还没问题。今天调用时候却只有YYMMDD的值了。

sub ShowDate(strTmp,strBegin,defauYear,defauMonth)
BeginYear=year(date)-strBegin
defauYear=year(date)-defauYear
response.write "<select name='"&strTmp&"yy'>"
for i=0 to strBegin
response.write "<option value='"&BeginYear+i&"'"
if defauYear=BeginYear+i then response.write " selected"
response.write ">"&BeginYear+i&"</option>"
next
response.write "</select><select name='"&strTmp&"mm'>"
for i=1 to 12
response.write " <option value='"&i&"'"
if defauMonth=i then response.write " selected"
response.write ">"&i&"</option>"
next
response.write "</select><select name='"&strTmp&"dd'>"
for i=1 to 31
response.write " <option value='"&i&"'"
if i=day(now) then response.write " selected"
response.write ">"&i&"</option>"
next
response.write "</select>"
response.write strtmp
end sub
...全文
35 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
clanboo 2004-01-24
  • 打赏
  • 举报
回复
晕 我刚刚看了我昨天写的代码 我昨天还加着呢 今天就忘记了
哎 自从来了CSDN我怎么发现动手能力变的越来越差了 只想着问人
谢谢2位了。
永远专注NET 2004-01-24
  • 打赏
  • 举报
回复
<% call showdate("a",2,2,2) %>
stefli 2004-01-24
  • 打赏
  • 举报
回复
你在第一句之后添加
response.write strtmp
response.end strtmp
然后可以更改位置跟踪strtmp的值
Gorgee 2004-01-24
  • 打赏
  • 举报
回复
<%Call ShowDate("A",2,2,2)%>

28,407

社区成员

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

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