[Gambas-user] translate bit manip from vb to gambas

Laurent Carlier lordheavym at ...626...
Fri May 16 22:42:04 CEST 2008


Le Friday 16 May 2008 23:18:02 Ron, vous avez écrit :
> Hi,
>
> I'm kinda stuck in translating this VB snippet
> --
>                             IF (recbits AND &H7) = 0 THEN
>                                 recbytes = ((recbits AND &H7F) > > 3)
>                             ELSE
>                                 recbytes = ((recbits AND &H7F) > > 3) + 1
>                             END IF
> --
>
> How to deal with the >>'s ?
>
> What is the gambas equivalent of this bit manip?
>
> Thanks a ton in advance!
>
> Regards,
> Ron.

Take a look at:
http://64.128.110.55/help/cat/bit

++





More information about the User mailing list