Results 1 to 4 of 4

Thread: Replace param info is wrong?

  1. #1
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default Replace param info is wrong?

    Parameter of Replace:



    Giving it the correct parameter results in an error:


    I've to omit the TReplaceFlag param to make it work. I know i should use ReplaceWrap if i want to use the TReplaceFlag param but why is it that it is shown in the Replace function when it isn't actually accepted?

  2. #2
    Join Date
    Feb 2012
    Posts
    390
    Mentioned
    2 Post(s)
    Quoted
    14 Post(s)

    Default

    Just do Replace(Text,FindStr,ReplaceStr)

    Thats all you need to do
    function Replace(Text, FindStr, ReplaceStr: string): string;

  3. #3
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by fisherblue23 View Post
    Just do Replace(Text,FindStr,ReplaceStr)

    Thats all you need to do
    function Replace(Text, FindStr, ReplaceStr: string): string;
    I do know that, i'm querying why the param pop up shows the wrong info.

  4. #4
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    b/c it's added to simba without modifying/tweaking the original pascal method for appearance, afaik. same with copy, and possible other methods too?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •