Re: [Gambas-user] Array decalarion

2009-09-07 Thread Ron
Benoît Minisini wrote: >> Benoît Minisini wrote: >> Hi, Why is method 1 of defining an array not allowed? Method 2 is the only one working, but looks clumsy when you have a lot of bytes. 1) DIM b AS Byte[] = [&HF0, &H30, &HF0, &H30] The error

Re: [Gambas-user] Array decalarion

2009-09-07 Thread Benoît Minisini
> Benoît Minisini wrote: > >> Hi, > >> > >> Why is method 1 of defining an array not allowed? > >> Method 2 is the only one working, but looks clumsy when you have a lot > >> of bytes. > >> > >> 1) > >> DIM b AS Byte[] = [&HF0, &H30, &HF0, &H30] > >> > >> The error is "Type mismatch: wanted Byte[

Re: [Gambas-user] Array decalarion

2009-09-07 Thread Ron
Benoît Minisini wrote: >> Hi, >> >> Why is method 1 of defining an array not allowed? >> Method 2 is the only one working, but looks clumsy when you have a lot >> of bytes. >> >> 1) >> DIM b AS Byte[] = [&HF0, &H30, &HF0, &H30] >> >> The error is "Type mismatch: wanted Byte[], got Integer[] inste

Re: [Gambas-user] Array decalarion

2009-09-07 Thread Benoît Minisini
> Hi, > > Why is method 1 of defining an array not allowed? > Method 2 is the only one working, but looks clumsy when you have a lot > of bytes. > > 1) > DIM b AS Byte[] = [&HF0, &H30, &HF0, &H30] > > The error is "Type mismatch: wanted Byte[], got Integer[] instead" > &HF0 is not a Byte, it

[Gambas-user] Array decalarion

2009-09-07 Thread Ron
Hi, Why is method 1 of defining an array not allowed? Method 2 is the only one working, but looks clumsy when you have a lot of bytes. 1) DIM b AS Byte[] = [&HF0, &H30, &HF0, &H30] The error is "Type mismatch: wanted Byte[], got Integer[] instead" 2) DIM b AS Byte[4] b[0] = &HF0 b[1] = &H30