Edit

SetFlag (num, num)

Result Type: Number

Definition: Returns the bitwise OR of the two integers. Use this function in Advanced Replace to set certain flags.

Example:  SetFlag(#8000, #0001)

returns 37269 (#8001)

If used in the Advanced Replace for the Product list:

Replace: Set Flags to SetFlag(Flags, #400000)

Sets the flag that controls the Update price when purchased setting in a Product, turning the checkbox off (because of reverse logic of this particular flag).

See Also:

ClearFlag: Bitwise bit clear

TestFlags: Binary AND