Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

RAP - StringReplace

edited November 2013 in General
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..

Thanks,

David

Comments

  • edited November 2013
    Hi David,

    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]);

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.