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.
DEFINE VARIABLE flagsEnum AS Progress.Reflect.Flags. flagsEnum = flagsEnum AND NOT Flags:Static. |