Apr 10, 2003 #1 Supps Programmer Mar 14, 2003 2 US Is it possible to do bitwise and operations in a crystal report 8.5 formula?
Apr 10, 2003 #2 synapsevampire Programmer Mar 23, 2002 20,180 US Sure. AND OR NOT, etc. If you state what you're trying to do, someone here can probably help you. -k Upvote 0 Downvote
Apr 10, 2003 Thread starter #3 Supps Programmer Mar 14, 2003 2 US I have a field that has a number in it. That number was created by adding values together 1, 2, 4, 8, etc.. What I wanted to do was Field and 1 = 1 but crystal reports kept saying a boolean was required. The way I got around it was to do something like this: fieldvalue := field; if fieldvalue >=8 then { string := string + '8'; fieldvalue := fieldvalue - 8; }; if fieldvalue >= 4 then { string := string + '4'; fieldvalue := fieldvalue - 4; ); etc... Thanks for the reply though. Upvote 0 Downvote
I have a field that has a number in it. That number was created by adding values together 1, 2, 4, 8, etc.. What I wanted to do was Field and 1 = 1 but crystal reports kept saying a boolean was required. The way I got around it was to do something like this: fieldvalue := field; if fieldvalue >=8 then { string := string + '8'; fieldvalue := fieldvalue - 8; }; if fieldvalue >= 4 then { string := string + '4'; fieldvalue := fieldvalue - 4; ); etc... Thanks for the reply though.