Performs a bitwise inclusive OR operation on two expressions of the same flag enum type and returns a new instance of the same type.
You can use bitwise OR to set multiple flags. 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 OR to set both the Public and Protected flags.
The following example shows bitwise OR being used with one explicitly named flag and a variable defined as type Progress.Reflect.Flags. The first bitwise OR sets the Static and Public flags of flagsEnum1. The second bitwise OR results in flagsEnum2 having the Static, Public, and Instance flags set.
DEFINE VARIABLE flagsEnum1 AS Progress.Reflect.Flags. DEFINE VARIABLE flagsEnum2 AS Progress.Reflect.Flags. flagsEnum1 = Flags:Static OR Flags:Public. flagsEnum2 = Flags:Instance OR flagsEnum1. |