View Single Post
  #37 (permalink)  
Old 07-06-2009, 07:04 AM
enonod enonod is offline
Basic4ppc Veteran
 
Join Date: Oct 2007
Location: U.K.
Posts: 210
Default

I am having difficulty with the data array but it must be me.
Quote:
Dim Type(x, y, z, name)Spritedata
....
Dim Spritedata(4) ' make a new array
... ' set it up
Sprite.DataArray = Spritedata() ' assign it to a Sprite
The second Dim gives the error that SpriteData is already in the dictionary.

I tried Dim Type(x,y)SpriteData(4) which is OK but
Sprite.DataArray = Spritedata() gave the error...
Object of type 'System.String[,]' cannot be converted to type 'System.String[]'

Can you advise please

[Edit]The destinations work a treat!!
__________________
You never stop learning until you die.
Sometimes I think I am dead.
Sometimes others think I am dead!

Last edited by enonod : 07-06-2009 at 07:40 AM.
Reply With Quote