#DEFINE myDef1 0x01 #DEFINE myDef2 0x02 #DEFINE myDef3 0x04 ? myDef1+myDef2+myDef3 = BITOR(myDef1,myDef2,myDef3) && .T. #DEFINE myDef4 0x01 #DEFINE myDef5 0x02 #DEFINE myDef6 0x03 && not a power of 2, this makes problems ? myDef4+myDef5+myDef6 = BITOR(myDef4,myDef5,myDef6) && .F.so the bottomline is - if all constants are powers of 2 one can also just add them, if not BITOR has to be used.