title: TQuery state in Delphi
body: <p>With <code>TQuery.state in [dsEdit, dsInsert]</code> I can check if <code>DataSet</code> is in some of the given states. Is there a way to check if it is NOT in given states? </p>
  
  <p>I have tried <code>TQuery.state &lt;&gt; [dsEdit, dsInsert]</code> resulting in <code>Incompatible types</code> error and <code>not Query.State in [dsEdit, dsInsert]</code> but then I am getting error <code>Operator not applicable to this operand type</code>.</p>
  
  <p>On the click on this button I am ApplyingUpdates, and I need to do that also when someone <code>delete</code> record from <code>DataSet</code> but there is not state that checks this case.</p>