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.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to