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?
Replace variable with another
Moderators: Alexander Halser, Tim Green
- Tim Green
- Site Admin
- Posts: 23186
- Joined: Mon Jun 24, 2002 9:11 am
- Location: Bruehl, Germany
- Contact:
Re: Replace variable with another
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%
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%
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.
Tim (EC Software Documentation & User Support)
Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
-
- Posts: 202
- Joined: Mon Dec 28, 2015 7:32 pm
Re: Replace variable with another
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.
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.