On Thu, Mar 09, 2006 at 12:06:26PM +1300, Ian Tidy wrote: > I am wanting to use bitwise operators in MapBasic, but I can't find any > information on them. > > Does anyone know if the exist and how to use them, or do I need to write my > own functions?
You have to write your own, but it's pretty easy. For example, to test the 5th bit from the right in an integer use integer divide and mod like so: n = 5 if nBitflags \ 2^(n-1) mod 2 then ' bit is set - Bill Thoen _______________________________________________ MapInfo-L mailing list MapInfo-L@lists.directionsmag.com http://www.directionsmag.com/mailman/listinfo/mapinfo-l