AnsweredAssumed Answered

Macro:  Need 2D array help, declare and read element from a 2D array

Question asked by Brian Austin on Apr 25, 2019
Latest reply on Apr 25, 2019 by Josh Brady

I need to have arrays in this format

 

DataArray(1) = a, b, c, d

DataArray(2) = m, n, o, p

 

 

So the numbers in parenthesis increase, and the number of elements per numbered array can be 1 to YY.

 

 

What is the SolidWorks Visual Basic syntax, in the above example to return "c"?  

 

Since array elements typically start at zero, DataArray (1, 2) does NOT work.

 

Such as

Msgbox DataArray(1,3)

 

 

Thanks,

Brian

San Diego, CA

Outcomes