asp数组的问题
<%
dim a,d,i,k
d=""
redim b(9)
redim c(9)
a="sinfield|afei|wonshare|xiaobo|hcc|zhbing|wrfhu|hh5|kitty|caffe"
b=split(a,"|")
for i=0 to 8
c(i)=b(i+1)
next
c(9)="guest"
for k=0 to 9
d=d&c(k)&"|"
next
response.Write(""&d&"")
%>
错误类型:
Microsoft VBScript runtime (0x800A000D)
Type mismatch
这样就行
<%
dim a,d,i,k,b,c
d=""
redim b(9)
redim c(9)
a="sinfield|afei|wonshare|xiaobo|hcc|zhbing|wrfhu|hh5|kitty|caffe"
b=split(a,"|")
for i=0 to 8
c(i)=b(i+1)
next
c(9)="guest"
for k=0 to 9
d=d&c(k)&"|"
next
response.Write(""&d&"")
%>
redim 之前必须声明
VBScript code:
Dim b ' 先 Dim
ReDim b(9) ' 再 ReDim
大哥,怎么在哪都有你的身影啊。。。。
Redim 和 dim 有关系吗? 学习
要养成声明变量的习惯,有好处的。
但请问变量b没有声明,只有redim为什么没有报错呢?
相关问答:
function CheckOpwd(){//验证用户名
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
A页面
<table width="200" border="1">
<tr>
<td>1</td>
<td>3</td>
<td><!--#include/top.html#-- ......
3个radioButton
一个Button
一个label
C# code:
protected void Button1_Click(object sender, EventArgs e)
{
string str = null;
RadioButton rdo=(RadioButton)sender;
......
一般的asp 书籍 只介绍 asp的六大对象 但像
Set fso = CreateObject("Scripting.FileSystemObject")
这些技术 却没有见过
这些东西是asp的哪方面知识
好像有 activeXobject什么 ......
发给我一份 280535258@qq.com 谢谢 要分可以说 多少都行
参考::!!!!
前台
<%@ Page language="c#" Codebehind="Domain.aspx.cs" AutoEventWireup="false" Inherits=&q ......