[Gambas-user] gb3 - "Too many arguments" when binding UDP socket to port
Benoît Minisini
gambas at ...1...
Sun Dec 12 19:04:34 CET 2010
> Syntax has changed in Gb3. See here for my Gambas2-Gambas3 scrapbook
> notes..
>
> http://www.domotiga.nl/wiki/Gambas/Gambas3#UdpSocketSyntaxChange
>
Hey, very good page!
Note that now in Gambas 3, you don't have to do the following anymore:
Dim b As Byte[] = [CByte(&HF0), CByte(&H3E), CByte(&HF0), CByte(&H3E)]
You can just do:
Dim b As Byte[] = [&HF0, &H3E, &HF0, &H3E]
The Integer array returned by the [...] operator is automatically converted to
a byte array. It's a bit slower, but the first syntax was too boring.
Regards,
--
Benoît Minisini
More information about the User
mailing list