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
spf-15
http://www.spf-15.com/

Share on Facebook Share on Twitter

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

  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

 

Comments

Log in to post comments.

 

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

Under construction. Email me your wish list for improvements.