Yes I did have both Dim's in Globals Sub. My problem is one of comprehension. I cannot seem to get to grips with this 'sort of indirection' or 'temps' that we mentioned earlier, instead of direct.
I don't see why each of the Type(x,y,z) doesn't become one entity and then placed in a single dimension.
I am trying to assign points((2,3),(3,7)...) to a sprite. That is why I did what I did.
I cannot seem to translate that using the example.
Sorry to be thick but perhaps I could ask for your help on that specific problem?
[Edit]
I also tried in app_start...
Dim points(4)
Points(0).x= 49
Points(0).y=1
[Edit 1]
The example line 35 'seems' to only permit one array element of x,y,z but it is dimensioned for 3, how to add Data(1)??
In the example line 24 I don't see why...
& CRLF & "Array(1) = " & arr(1))
cannot become...
& CRLF & "Array(1) = " & spr.DataArray(1))
Is it for the same reason as Spr.Value = Spr1.Value ?
[Edit 2]
It looks to me that x,y,z have been converted to data(0)=x,...(1)=y etc. Which means that there is only one true element permitted as I mentioned above so...
Spr.DataArray = data() where data is as above
__________________
You never stop learning until you die.
Sometimes I think I am dead.
Sometimes others think I am dead!
Homesite: http://www.don-simmonds.co.uk for Libyan Mural
Device:Viewsonic VPad7, Android 2.2.2
Last edited by enonod : 07-06-2009 at 12:16 PM.
Reason: Dim points(4)
|