SetState Sets the state and pattern of a P3S object. Syntax int SetState(CP3SObj@ ent, string&in state, string&in pattern)