SetObjectFlagOff (object, string flag name)
Turns the object flag on - an object flag is simply a boolean attribute, so:
SetObjectFlagOn(myobject, "myflag")
is equivalent to
myobject.myflag = true
See also SetObjectFlagOff