本文介绍了使用传统的ASP收集1数组中的元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在传统的ASP一个二维数组,
我的目标是,数组中找到第一个元素,并将其保存在变量。将剩余的元素(除了第一个元素)之后被保存在相同的阵列
I have a 2-D array in classic asp, my aim is to find 1st element in that array and save it in a variable. after that remaining elements(except the first element) are saved in same array.
例如:
如果 aryReturn
就像是一个数组。
Example: if "aryReturn
" is an array like.
aryReturn(0,0) = 1001
aryReturn(1,0) = 1002
aryReturn(2,0) = 1003
aryReturn(3,0) = 1004
aryReturn(4,0) = 1005
aryReturn(5,0) = 1006
现在我想找到1号元素( aryReturn(0,0)= 1001
)的昏暗的intValue
Now I want to find the 1st element(aryReturn(0,0)= 1001
) in Dim intValue
.
intValue = 1001
然后在这之后,它sholud与剩余元素返回的阵列。
aryReturn =
then after that, it sholud return the array with remaining elements.aryReturn =
aryReturn(0,0) = 1002
aryReturn(1,0) = 1003
aryReturn(2,0) = 1004
aryReturn(3,0) = 1005
aryReturn(4,0) = 1006
请帮我...感谢进阶
推荐答案
我想我已经回答了你的问题。下面的code可以帮助你。
I think I've answered your question. The code below might help you.
dim aryReturn(5,0)
aryReturn(0,0) = 1001
aryReturn(1,0) = 1002
aryReturn(2,0) = 1003
aryReturn(3,0) = 1004
aryReturn(4,0) = 1005
aryReturn(5,0) = 1006
var1=aryReturn(0,0)
for i=0 to ubound(aryReturn)-1
aryReturn(i,0)=aryReturn(i+1,0)
response.Write(aryReturn(i,0)&"<br>")
next
这篇关于使用传统的ASP收集1数组中的元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!