SetFlag
SetFlag

Turns a flag on or off

bSuccess = myClass.SetFlag( index, bON )

Return value
TRUE if the flag was changed successfully, otherwise FALSE.

Parameters
  • index
    Number of the flag to change - note: must be a positive integer or 0.
  • bON
    TRUE to turn the flag on (default) FALSE to turn it off.
Comments

All objects can have flags. These can be ON or OFF.
Flags are faster than alterable values, but can only store boolean values.

See also
Class:SetFlagOn
Class:SetFlagOff
Class:ToggleFlag
Class:IsFlagOn
Class:IsFlagOff
Class:SelectFlag



JAM © 2005 no one in particular
Project started by David Evans in 2005