vbscript中的CreatObject("Scripting.Dictionaty")问题
一个 它是干什么的,有什么用二个下面一段代码那里错了,
望高手们帮忙了
<html><head><title>for each....next语句</title>
<script language="vbscript">
Sub cmdChange_OnClick
set Obj=CreatObject("Scripting.Dictionaty")
Obj.Add "0","文本1"
Obj.Add "1","文本2"
Obj.Add "2","文本3"
j=0
for each i in Obj
document.textForm.Elements(j).value=Obj.Item(i)
j=j+1
next
end sub
</script></head>
<body><div align =center >
<form name="textForm">
<input type="text "><br>
<input type="text "><br>
<input type="text "><br>
<input type="button" name="cmdChange" value ="单击此处">
</form>
</div>
</body></html>