[Gambas-user] translate bit manip from vb to gambas
Ron
ron at ...1740...
Sat May 17 00:35:39 CEST 2008
Laurent Carlier schreef:
> 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
>
>
Thanks, overlooked it somehow.
It works now.
Regards,
Ron.
More information about the User
mailing list