You might try taking at look at the following:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/ vbconArrays.asp Visual Basic Language Concepts - Arrays In here you'll find the following: Multidimensional Arrays In Visual Basic, you can declare arrays with up to 32 dimensions. For example, the following statement declares a two-dimensional array with 5 rows and 10 columns. Dim Rectangle(4, 9) As Single ' (0) through (4), (0) through (9). The total number of elements is the product of the sizes of all the dimensions, in this case 50. The rank of an array is held in its Rank property, and the length of each dimension is returned by the GetLength method. The lowest subscript value for a dimension is always 0, and the highest subscript value is returned by the GetUpperBound method for that dimension. Note that the argument you pass to GetLength and GetUpperBound (the dimension for which you want the length or the highest subscript) is 0-based. Note When you add dimensions to an array, the total storage needed by the array increases considerably, so use multidimensional and jagged arrays with care. You can efficiently process a multidimensional array by using nested For loops. For example, the following statements initialize every element in MatrixA to a value between 0 and 99, based on its location in the array. Dim I, J As Integer Dim MaxDim0, MaxDim1 As Integer ' Highest subscripts, not lengths. Dim MatrixA(9, 9) As Double MaxDim0 = MatrixA.GetUpperBound(0) ' Maximum for first dimension. MaxDim1 = MatrixA.GetUpperBound(1) ' Maximum for second dimension. For I = 0 To MaxDim0 For J = 0 To MaxDim1 MatrixA(I, J) = (I * 10) + J Next J Next I You can obtain the overall size of an array from its Length property. This holds the total number of elements currently contained in the array. Patrick Kennedy Rational Support -----Original Message----- From: Karen NG [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 28, 2002 7:39 AM To: [EMAIL PROTECTED] Subject: (ROSE) Two-dimension array hi all. Does anyone know how to define a two-dimension array in the VB scripting language? Karen ************************************************************************ * Rose Forum is a public venue for ideas and discussions. * For technical support, visit http://www.rational.com/support * * Post or Reply to: [EMAIL PROTECTED] * Subscription Requests: [EMAIL PROTECTED] * Archive of messages: * http://www.rational.com/support/usergroups/rose/rose_forum.jsp * Other Requests: [EMAIL PROTECTED] * * To unsubscribe from the list, please send email * To: [EMAIL PROTECTED] * Subject: <BLANK> * Body: unsubscribe rose_forum ************************************************************************* ************************************************************************ * Rose Forum is a public venue for ideas and discussions. * For technical support, visit http://www.rational.com/support * * Post or Reply to: [EMAIL PROTECTED] * Subscription Requests: [EMAIL PROTECTED] * Archive of messages: * http://www.rational.com/support/usergroups/rose/rose_forum.jsp * Other Requests: [EMAIL PROTECTED] * * To unsubscribe from the list, please send email * To: [EMAIL PROTECTED] * Subject: <BLANK> * Body: unsubscribe rose_forum *************************************************************************