Return type: Flag enum type
Access: PUBLIC
Applies to: Progress.Reflect.Flags enumeration, Progress.Reflect.ParameterMode enumeration, any user-defined flag enum type
The following example results in vReflectFlags, an instance of Progress.Reflect.Flags, with the Public and Protected flags set:
DEFINE VARIABLE vReflectFlags AS Flags. vReflectFlags = Flags:Public. /* This sets the Protected flag without affecting the status of any of the other flags in vAccess. */ vReflectFlags = vReflectFlags:SetFlag(Flags:Protected). |
You can use a bitwise OR operation to achieve the same result. For example, replacing the last line with vReflectFlags = vReflectFlags OR Flags:Protected also sets the Protected flag.
ENUM Permission FLAGS: DEFINE ENUM None = 0 Read Write ReadWrite = Read,Write Create Delete. END ENUM. |
DEFINE VARIABLE vPerm AS Permission. vPerm = Permission:Read. /* This sets the Create flag without affecting the status of any of the other flags in vPerm. */ vPerm = vPerm:SetFlag(Permission:Create). |