Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

Replace Function

I have this code:
curdir = "" call GetCurrentDir("", curdir)

and want to to a replace like this:


If I Replace one by one I get this:
CurrentDirectory = "" call GetCurrentDir("", CurrentDirectory)

If I ReplaceAll I get this:
CurrentDirectory = "" CurrentDirectorycall GetCurrentDir("", )


Maybe one for the upcoming Work with the Editor?

Comments

  • Is that in OI10?

    I've used replace all, extensively without issue.
    But I haven't played with 10.
  • OI 9.4.6
    Editor 3.3.8.2
    Editor OCX 3.3.8.2
    SRP Utilities 2.2.5.2

    I have used it extensively before and this is the first time I notcied it.
    So I replciated my example in a new procedure after restarting OI. Easily reproduced.

    I havent started playing aroud to further figure out what is special about that case (or setting for that matter)
    So, in case it is important, My Editor is setup for:


  • It seems like the same issue as reported here. It's on my radar to fix. I'm very close to (finally) releasing the SRP ActiveX Controls (pretty big update), and then all my attention will focus on giving the SRP Editor some much needed attention.
  • Memory like an elephant Kevin.
    I couldn't get it to break until reading the other post.

    Had to do a "Find Next", "Replace", "Replace All" as per Vince's example.
  • I think maybe I had the Find open from the original procedure when I recreated the example in a new procedure. That would lead me to believe you are correct Kevin, seems like the same issue!
Sign In or Register to comment.