NOT operator (bitwise)
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Syntax
|
- flag-enum-expression
- An expression whose value is a flag enum instance. The expression cannot be the
Unknown value (
?).
Example
You can use bitwise NOT to turn off a flag. This code fragment defines a variable of type
Progres.Reflect.Flags (see the Progress.Reflect.Flags enumeration entry for a full list of enumerators) and uses NOT to make
sure the Static flag is not set while leaving the other flags
unchanged.
|
Notes
- This operator can be used with both ABL and .NET flag enums.
See also
AND operator (bitwise), ENUM statement, OR operator (bitwise), XOR operator (bitwise)