Replace variable with another

Please post all questions and comments regarding Help & Manual 7 here.

Moderators: Alexander Halser, Tim Green

Post Reply
Tobias Escher
Posts: 202
Joined: Mon Dec 28, 2015 7:32 pm

Replace variable with another

Unread post by Tobias Escher »

I have to replace a variable that is used hundreds of times in my projects with another variable.
So every occurrence of that variable needs to be replaced with a differently named variable. How can I do that?
User avatar
Tim Green
Site Admin
Posts: 23156
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Replace variable with another

Unread post by Tim Green »

Hi Tobias,

Sometimes things are easier than you expect. You can search and replace variable names in your topics as normal text, even if they are inserted as variable objects. To be sure of just getting the variables, search and replace between %% characters, like this:

Search for: %COPYRIGHT%
Replace with: %COPYLEFT%

8)
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Tobias Escher
Posts: 202
Joined: Mon Dec 28, 2015 7:32 pm

Re: Replace variable with another

Unread post by Tobias Escher »

Wow - awesome!
Was there a change in the replace behaviour? I remember when I tried that earlier (7.1 or so), replacing would insert normal text, instead of the blue bighlighted variable.
Post Reply