Forum Discussion

JBF_54's avatar
JBF_54
Brass Contributor
Mar 29, 2020
Solved

Can't figure out a subscript error (simple arry)

I'm going crazy. I'm getting a subscript out of range error and can't figure out why. 

In the coding example below are two example of creating, filling and referencing an array. They look the same to me ... but the 2nd one blows up. What am I not seeing?

 

  • JBF_54 

     

    Found the problem ... variant arrays are always 2 dimensional, I was missing one of the subscripts.

     

1 Reply

  • JBF_54's avatar
    JBF_54
    Brass Contributor

    JBF_54 

     

    Found the problem ... variant arrays are always 2 dimensional, I was missing one of the subscripts.

     

Resources