Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bitwise and

Status
Not open for further replies.

Supps

Programmer
Mar 14, 2003
2
US
Is it possible to do bitwise and operations in a crystal report 8.5 formula?
 
Sure.

AND OR NOT, etc.

If you state what you're trying to do, someone here can probably help you.

-k
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top