[Gambas-devel] Type mismatch: wanted Byte[], got Integer[] instead
Ron
ron at ...572...
Sat Nov 27 08:48:51 CET 2010
Ok great will try!
---
Regards,
Ron Klinkien
On Nov 27, 2010 2:30 AM, "Benoît Minisini" <gambas at ...1...>
wrote:
>> 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.
>>
>
> Hi,
>
> I added an automatic conversion between all array classes in revision
3325.
>
> So now you can write:
>
> Dim b1 As Byte[] = [&HF0, &H33, ...]
>
> And it will do what you expected.
>
> Regards,
>
> --
> Benoît Minisini
>
>
------------------------------------------------------------------------------
> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
> Tap into the largest installed PC base & get more eyes on your game by
> optimizing for Intel(R) Graphics Technology. Get started today with the
> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
> http://p.sf.net/sfu/intelisp-dev2dev
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20101127/b66b2108/attachment.html>
More information about the Devel
mailing list