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

Ron ron at ...1740...
Fri May 16 23:18:02 CEST 2008


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.




More information about the User mailing list