I just purchased Version 7.00.0015 of ActiveX iGrid as I was having issues with loadfromarray in 6.X. Seems like there was a known bug in 6.X but was resolved in 7.X. My error wasn't necessarily the Range() issue, it just simply failed.
To test 7.X, I added two new 7.X grids, configured them with identical columns, loaded the first grid the normal way, then ran this code (from the example in the chm document):
Dim arr(1 To 10, 1 To 5) As Variant
frmMain.iGrid1.LoadIntoArray 1, 1, arr
frmMain.iGrid2.Clear
frmMain.iGrid2.LoadFromArray 1, 1, arr
I can see that iGrid1 loads correctly and all the expected data is loaded.
I thought maybe it was the dimension of the array so I tried several combinations trying to match the exact number of columns and such, but no luck. On the frmMain.iGrid2.LoadFromArray line, I get the Subscript out of range error.
What might I be doing wrong?
Thanks.
Troy