Well you need to understand that you make an array of array of models
To fill it :
Public StageListWall As New ObjModel[][]
StageListWall.Resize(200)
'Instanciate each x Level
For i = 1 to StageListWall.Max
StageListWall[i] = new objModel[]
next
'Adding a Model :
hModel = new ObjModel
Provided that the Sardinia sun has baked my brain (in fact, since my last
post, it would seem) example (I think correctly) that I posted, there is
what you need and more.
Greetings
Gianluigi
2015-08-21 9:19 GMT+02:00 Tobias Boege :
> On Fri, 21 Aug 2015, Kevin Fishburne wrote:
> > On 08/21/2015 1
On Fri, 21 Aug 2015, Kevin Fishburne wrote:
> On 08/21/2015 12:00 AM, Kevin Fishburne wrote:
> > On Wed, Aug 19, 2015 at 9:22 AM, Kevin Fishburne <
> > kevinfishbu...@eightvirtues.com> wrote:
> >
> >> I need to know how to declare, initialize and add elements to a
> >> two-dimensional dynamic array
On 08/21/2015 12:00 AM, Kevin Fishburne wrote:
> On Wed, Aug 19, 2015 at 9:22 AM, Kevin Fishburne <
> kevinfishbu...@eightvirtues.com> wrote:
>
>> I need to know how to declare, initialize and add elements to a
>> two-dimensional dynamic array. Using trial-and-error for every possible
>> syntax has
On Wed, Aug 19, 2015 at 9:22 AM, Kevin Fishburne <
kevinfishbu...@eightvirtues.com> wrote:
> I need to know how to declare, initialize and add elements to a
> two-dimensional dynamic array. Using trial-and-error for every possible
> syntax hasn't been too helpful so far. I'd post my code but it's
I posted an example (array of arrays) that contains at least this error:
In routine: Public Sub Button3_Click()
The line: If iR = -1 Then iR = $iContoRighe, should be replaced with: If iR
= 0 Then iR = $iContoRighe
I apologize (I am on vacation :))
Greetings
Gianluigi
2015-08-19 10:22 GMT+02:00
You can't do it dynamically with normal syntax:
Dim iMyArray As Integer[x, y]
Instead use declaration like this:
Dim iMyArray As Integer[][]
But then, you can't access it as the normal way (iMyArray[x, y]) either,
but instead:
iMyArray[x][y] = something
iMyArray[x].Add(something)
iMyArray[x][y].
Personally, I like to think of a 2D array of integers as a
1D array of objects, with each element an array of integers
I've done something like this with complete success:
'
Public rec As New Object[100]'declare rec as an array of objects and create
it.
Hello Kevin,
I'm on vacation and I'm not sure I understand the question, I am attaching
this example in Italian perhaps with Google Translator can help.
Regards
Gianluigi
2015-08-19 8:22 GMT+02:00 Kevin Fishburne :
> I need to know how to declare, initialize and add elements to a
> two-dimensio