collect 1st element in an array using classic asp

后端 未结 1 654
醉话见心
醉话见心 2021-01-28 13:49

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 s

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-28 14:29

    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)&"
    ") next

    0 讨论(0)
提交回复
热议问题