Android Question How calculate a Lower Byte and Upper Byte from a Int?

infow

Member
Licensed User
Longtime User
In Java seems to be something like that:

Low = 123 & 0xFF
High = ((123 >> 8) & 0xFF)

How can I do that in B4A?

Thank you
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

sorex

Expert
Licensed User
Longtime User
the AND is not needed in the high case if you know that the initial value will never go beyond 65535
 
Upvote 0
Top