Re: [Gambas-user] About array Initialization

2010-11-18 Thread Fabien Bodard
2010/11/19 Demosthenes Koptsis : > ok, > another question... > > the only way to init a static array aNumbers[10] is > > aNumbers[0]=1 > aNumbers[1]=2 > aNumbers[2]=12 > aNumbers[3]=13 > yes a static array is not an object ... that's why it's a little bit deprecated :) anther way : dim htm

Re: [Gambas-user] About array Initialization

2010-11-18 Thread Demosthenes Koptsis
ok, another question... the only way to init a static array aNumbers[10] is aNumbers[0]=1 aNumbers[1]=2 aNumbers[2]=12 aNumbers[3]=13 On Fri, 2010-11-19 at 01:36 +0100, Benoît Minisini wrote: > > Good morning to all! > > > > we can do an array initialization such as > > > > DIM aNumbe

Re: [Gambas-user] About array Initialization

2010-11-18 Thread Benoît Minisini
> Good morning to all! > > we can do an array initialization such as > > DIM aNumbers AS Integer[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] > > but not > DIM aNumbers AS Integer[10] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] > > > why is that? No real reason, except that the second syntax is useless: you

[Gambas-user] About array Initialization

2010-11-17 Thread Demosthenes Koptsis
Good morning to all! we can do an array initialization such as DIM aNumbers AS Integer[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] but not DIM aNumbers AS Integer[10] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] why is that? -- Regards, Demosthenes Koptsis. -