[Gambas-devel] Type mismatch: wanted Byte[], got Integer[] instead

Ron ron at ...572...
Wed Aug 11 12:38:00 CEST 2010


Hi,

"Type mismatch: wanted Byte[], got Integer[] instead"

I get the above error on the following code line while running my 
project... is this expected behavior or did I miss something?

Dim b1 As Byte[] = [CByte(&HF0), CByte(&H33), &HF0, &H33]

Worked with Gambas2.

The following changes seems to fix it, but what an overhead...

Dim b1 As Byte[] = [CByte(&HF0), CByte(&H33), CByte(&HF0), CByte(&H33)]


Now running Gambas3 rev 3098 on Ubuntu 10.04

Regards,
Ron.




More information about the Devel mailing list