M
mp
Before I set option strict on i was able to work with arrays as objects
similar to vb6 variants
what i mean by that is the following lines worked in my app
Dim vMin As Object = Nothing, vMax As Object = Nothing
oRegion.GetBoundingBox(vMin, vMax)
and the GetBoundingBox method filled the arrays as required (3 element
arrays of doubles)
..................
when i changed to option strict on i had to change the lines above to
Dim vMin As Double() = New Double(0 To 2) {}
Dim vMax As Double() = New Double(0 To 2) {}
'convert array to object
oRegion.GetBoundingBox(CType(vMin, Object), CType(vMax, Object))
but now the arrays are not filled...they appear to be all zeros
how do i solve this dilema?
the .GetBoundingBox method args are (vMin as Object, vMax as Object)
in vb6 they would have been variants and would return 3 element arrays of
doubles
thanks
mark
similar to vb6 variants
what i mean by that is the following lines worked in my app
Dim vMin As Object = Nothing, vMax As Object = Nothing
oRegion.GetBoundingBox(vMin, vMax)
and the GetBoundingBox method filled the arrays as required (3 element
arrays of doubles)
..................
when i changed to option strict on i had to change the lines above to
Dim vMin As Double() = New Double(0 To 2) {}
Dim vMax As Double() = New Double(0 To 2) {}
'convert array to object
oRegion.GetBoundingBox(CType(vMin, Object), CType(vMax, Object))
but now the arrays are not filled...they appear to be all zeros
how do i solve this dilema?
the .GetBoundingBox method args are (vMin as Object, vMax as Object)
in vb6 they would have been variants and would return 3 element arrays of
doubles
thanks
mark