Results 1 to 3 of 3

Thread: two dimensional array? how?

  1. #1

    Thread Starter
    Lively Member Cerebrate's Avatar
    Join Date
    May 2000
    Posts
    82
    how can I create a two dimensional array in VBscript??

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    I presume/hope you mean server-side VBScript...

    Code:
    <%@ Language=VBScript %>
    <HTML>
    <HEAD>
    
    </HEAD>
    <BODY>
    
    
    <%
    dim Arry2d()
    dim i
    dim j
    
    redim Arry2d(2,4)
    
    for i = 0 to 2
    for j = 0 to 4
    	Arry2d(i,j)= "item " & i & "," & j
    next 
    next
    
    for i = 0 to 2
    for j = 0 to 4
    	Response.write Arry2d(i,j) & "<BR>"
    next 
    next
    
    %>
    
    
    </BODY>
    </HTML>
    Mark
    -------------------

  3. #3

    Thread Starter
    Lively Member Cerebrate's Avatar
    Join Date
    May 2000
    Posts
    82

    Red face

    That is really what I need.

    Thanks a lot!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width