Re: [Gambas-user] array of classes

2016-07-03 Thread Shane
FYI this will not work as is as i found out Public Sub Main() Dim idx as integer Dim hBlock as Block For idx = 0 to MAX_BLOCKS-1 hBlock = new Block Blocks[idx] = hBlock Next must be this way or in my case it did work as i was filling new values in the loop On 03/07/16 19:38, adamn...@

Re: [Gambas-user] array of classes

2016-07-03 Thread Shane
thanks Bruce that was my problem i just fixed a little differant i used the add function thanks for your help Shane. On 03/07/16 19:38, adamn...@gmail.com wrote: > On Sun, 3 Jul 2016 18:20:15 +1000 > Shane wrote: > >> I'm trying create a array of myClass but when i create it i have an >> array o

Re: [Gambas-user] array of classes

2016-07-03 Thread adamn...@gmail.com
On Sun, 3 Jul 2016 18:20:15 +1000 Shane wrote: > I'm trying create a array of myClass but when i create it i have an > array of null values > > i have my Rect.class > > Public x As Integer > Public y As Integer > Public width As Integer > Public height As Integer > > > then my Block.class >