Is there documentation on the StringReplace and StringReplaceAll functions in RAP? I've tried using it the same way that I use it in Delphi, but it's not working..
Since RAP does not support sets, the last parameter of the TraStringReplace routine in RAP is a boolean type defining whether to use ignore the case or not.
Comments
Since RAP does not support sets, the last parameter of the
TraStringReplace routine in RAP is a boolean type defining whether to
use ignore the case or not.
RAP: MyString := StringReplace(MyString, OldPattern, NewPattern, True);
Delphi: MyString := StringReplace(MyString, OldPattern, NewPattern,
[rfIgnoreCase]);
--
RAP: MyString := StringReplaceAll(MyString, OldPattern, NewPattern, True);
Delphi: MyString := StringReplace(MyString, OldPattern, NewPattern,
[rfReplaceAll, rfIgnoreCase]);
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com