[RESOLVED] Object Arrays?
In the old VB6 you used to be able to create an object, and make that object apart of an array. At run time you could then create more of that same object, but with different indexes (But still the same name).
So in the end you could end up with an array of tiles if you wanted, by timesing the index by the width of the object for example and creating the object at a specific place.
In .Net object arrays appear to not be supported anymore.
How would one go about creating objects at run time and using some type of integer to refer to them?
I'm attempting to create some sort of Sudoku game, but am stumped at designing the map. The map will not have a static dimension.
Re: [RESOLVED] Object Arrays?
You should turn on Option Strict by going to:
Tools-Options-Projects and Solutions-VB Defaults and selecting On.
No doubt you'll discover all kinds of errors that indicate non-compliance with excplicit casts, but you'll also learn to program more carefully with a more specific purpose in mind; as well as avoid all kinds of errors lurking in the background waiting for their chance to strike.