"in" operator .. state in []

Hello,
I tried to check a state like
table1.state in [dsEdit, dsInsert]
got an syntax error by "in"

I can check if table1.state = dsEdit..

Is there any workaround?

TIA, Ralf

Use it like this:

Table1.State in SetOf([dsEdit, dsInsert])

I forgot, I already tried this.
same happens when I use the IDE Demo Project.
Put one TTable component on the form and

procedure Form2Create(Sender: TObject);
begin
  if table1.State in SetOf([dsEdit, dsInsert]) then
  begin
    ShowMessage('Hello');
  end;
end;

I have the same Syntax Error" exactly at the "in" operator.
Any idea?

TIA, Ralf..

I'm sorry, I overlooked this. The in operator is not supported in scripter, thus you have to write it like this:

  if (table1.State = dsEdit) or (table1.State = dsInsert) then