| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 514 人关注过本帖
标题:[求助]大家都来看看为什么就运行不了!
只看楼主 加入收藏
348212866
Rank: 1
等 级:新手上路
帖 子:105
专家分:0
注 册:2005-9-17
收藏
 问题点数:0 回复次数:3 
[求助]大家都来看看为什么就运行不了!
<% dim=the_a dim=the_b dim=the_c the_a=response("the_table") the_b=response("the_tr") the_c=response("the_td") for the_i=1 to "the_table" response.write"<table border='1'>" for the_m=1 to "the_tr" response.write"<tr>" for the_n=1 to "the_td" response.write"<td>" response.write"&nbsp" response.write"</td>" next response.write"</tr>" next response.write"</table>" next %>
搜索更多相关主题的帖子: 运行 
2005-09-27 19:19
yms123
Rank: 16Rank: 16Rank: 16Rank: 16
等 级:版主
威 望:209
帖 子:12488
专家分:19042
注 册:2004-7-17
收藏
得分:0 
<% dim=the_a '这是定义变量还是赋值?如果定义变量ASP中不是这么定义的吧?应该是dim the_a '如果赋值dim应该是vbScript的保留关键字,好像不能作为变量名来使用。 dim=the_b dim=the_c the_a=response("the_table") the_b=response("the_tr") the_c=response("the_td") for the_i=1 to "the_table" '循环的初始值的类型是integer的,而结束值是"the_table"字符串型。这两个明显类型就不对应 '类型就是不对应那应该是integer型的初始值。到long型,起码都得是数字型。 '数字与字符串好像不能循环的。 response.write"<table border='1'>" for the_m=1 to "the_tr" response.write"<tr>" for the_n=1 to "the_td" response.write"<td>" response.write"&nbsp" response.write"</td>" next response.write"</tr>" next response.write"</table>" next %>
2005-09-27 20:23
ming206
Rank: 2
来 自:重庆
等 级:等待验证会员
威 望:3
帖 子:545
专家分:7
注 册:2005-8-2
收藏
得分:0 
在ASP中定义变量的同时不可以赋值!

外贸综合平台:E贸通
2005-09-28 01:44
sudonghai
Rank: 1
等 级:新手上路
帖 子:56
专家分:0
注 册:2005-9-16
收藏
得分:0 
我看他想做个循环表格。 不过他的定义变量好像没有理解透了。 <% dim the-a,the_b,the_c the_a=request("the_table") the_b=request("the_tr") the_c=request("the_td") for the_i=1 to the_a response.write "<table border='1'>" for the_m=1 to the_b response.write"<tr>" for the_n=1 to the_c response.write"<td>" response.write"&nbsp" response.write"</td>" next response.write"</tr>" next response.write"</table>" next %> 好像是这样的,也不知道对不对。

QQ:270072546 网上名片 网址为:sudonghai. 网上名片:《一搜》上搜“一个爱的天使”,第一个呵呵!~就是我啦!~ ————————为了生存我想我残酷了————————
2005-09-28 16:32
快速回复:[求助]大家都来看看为什么就运行不了!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017767 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved