Use StringReplace/ReplaceFlags in ScripterStudio

Im using Scripter Studio pro Version 2.2.0.0in Delphi 2007.
I want to use StringReplace with ReplaceFlags [rfReplaceAll] I get the following error message:

What can I do?

I see that my error message was deleted. The text is:
Unknown identifier or variable is not declared 'rfReplaceAll'

You must register such constants:


  IDEScripter1.AddConstant('rfReplaceAll', rfReplaceAll);
  IDEScripter1.AddConstant('rfIgnoreCase', rfIgnoreCase);

then you can use it this way:

  StringReplace(S, 'Old', 'New', SetOf([rfReplaceAll]));

Thank you for your prompt reply. It works!