L
lgbjr
hi All,
I've decided to use Options Strict ON in one of my apps and now I'm trying
to fix a late binding issue. I have 5 integer arrays:
dim IA1(500), IA2(500), IA3(500), IA4(500), IA5(500) as integer
The integers in these arrays are actually pointers to different columns of
data in a text file.
I create an array of these arrays:
Dim HIndex() as Array = {IA1, IA2, IA3, IA4, IA5}
Then I use two loops to retrieve the integers from the aray of arrays:
Dim xHeader() as String
Dim T_xHeader as ArrayList
For s = 0 to 4
Do some stuff
For i = 0 to HIndex(s).Length -1
Do some stuff
T_xHeader.Add(xHeader(HIndex(s)(i))) 'Late Binding Here
Next i
Do some stuff
Next s
So, HIndex(s)(i) actually points to an value in xHeader, which is then added
to T_xHeader.
This all works fine, but, becasue I'm dimensioning HIndex as an array, I'm
getting a late binding error.
I can't figure out how to dimension HIndex to something other than array, in
order to avoid the late binding.
Any ideas would be greatly appreciated!!
TIA
Lee
I've decided to use Options Strict ON in one of my apps and now I'm trying
to fix a late binding issue. I have 5 integer arrays:
dim IA1(500), IA2(500), IA3(500), IA4(500), IA5(500) as integer
The integers in these arrays are actually pointers to different columns of
data in a text file.
I create an array of these arrays:
Dim HIndex() as Array = {IA1, IA2, IA3, IA4, IA5}
Then I use two loops to retrieve the integers from the aray of arrays:
Dim xHeader() as String
Dim T_xHeader as ArrayList
For s = 0 to 4
Do some stuff
For i = 0 to HIndex(s).Length -1
Do some stuff
T_xHeader.Add(xHeader(HIndex(s)(i))) 'Late Binding Here
Next i
Do some stuff
Next s
So, HIndex(s)(i) actually points to an value in xHeader, which is then added
to T_xHeader.
This all works fine, but, becasue I'm dimensioning HIndex as an array, I'm
getting a late binding error.
I can't figure out how to dimension HIndex to something other than array, in
order to avoid the late binding.
Any ideas would be greatly appreciated!!
TIA
Lee