Brian Dunning's FileMaker Custom Functions

BitOr ( x ; y )

Bitwise OR operation on two numbers

  Average rating: 4.4 (26 votes) Log in to vote

Shaun Flisakowski   Shaun Flisakowski

Share on Facebook Share on Twitter

  Sample input:
BitOr ( 7 , 2 )
  Sample output:

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

The numbers used the new functions TextStyleAdd() and TextColor() are bitmasks. For simple manipulations, + can sometimes be used to combine styles and colors:
RGB( 255, 0, 0 ) + RGB( 0, 255, 0 ) = RGB( 255, 255, 0 )

but for more complex operations, bitwise or operations can be helpful:
BitOr( Bold+Italic, Bold ) = Bold+Italic



Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.