[Gambas-user] Array decalarion

Ron ron at ...1740...
Mon Sep 7 15:08:11 CEST 2009


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
b[2] = &HF0
b[3] = &H30

Gambas 2.16.0

Regards,
Ron_2nd.




More information about the User mailing list