How to create multi-dimensional jagged arrays in VbScript ?

Posted by vandana268 on Stack Overflow See other posts from Stack Overflow or by vandana268
Published on 2010-05-19T08:24:49Z Indexed on 2010/05/19 8:30 UTC
Read the original article Hit count: 660

Filed under:
|

I need to create multi-dimensional array of strings. Each row of the array can have varying number of strings. Something like the follwing code:

twoDimension = Array(Array())  
ReDim Preserve twoDimension(3)  
For i = 0 to 2  
 If i = 1 Then  
  twoDimension(i) = Array(1,2,3)  
 End If  
 If i = 2Then  
     twoDimension(i) = Array(1,2,3,4,5)  
   End If  
Next  

© Stack Overflow or respective owner

Related posts about vbscript

Related posts about jagged-arrays