Replace text with variable

Nothing is perfect! This is where you can post your ideas and wishes for functions you'd like to see in Help & Manual. Current version only please (H&M7).

Moderators: Alexander Halser, Tim Green

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

Replace text with variable

Unread post by Tobias Escher »

It would ne nice to be able to replace any occuance of a search string with a string containing variables.
So "replace all "blabla" with "<%blabla%>".
Simon Dismore
Posts: 454
Joined: Thu Nov 16, 2006 1:29 pm
Location: London, UK

Re: Replace text with variable

Unread post by Simon Dismore »

Tobias Escher wrote:It would ne nice to be able to replace any occuance of a search string with a string containing variables.
So "replace all "blabla" with "<%blabla%>".
Good idea.
User avatar
Tim Green
Site Admin
Posts: 23156
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Replace text with variable

Unread post by Tim Green »

This is already possible. Variables don't have to be entered as variable objects; they can also be typed in directly as <%VARIABLE_NAME%>. So you can also do this with search and replace. So long as the replacement uses the <%VARIABLE_NAME%> syntax with all capital letters and no spaces it will work. 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 text with variable

Unread post by Tobias Escher »

Yes, but this makes H+M not show the variable as such with the blue frame. This means it is not possible to check the variable value and as a user it is not easily seen where a variable is.
Tobias Escher
Posts: 202
Joined: Mon Dec 28, 2015 7:32 pm

Re: Replace text with variable

Unread post by Tobias Escher »

Any chance of having H+M check for variable use and show that blue frame?
User avatar
Tim Green
Site Admin
Posts: 23156
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Re: Replace text with variable

Unread post by Tim Green »

Tobias Escher wrote:Any chance of having H+M check for variable use and show that blue frame?
Not on manually-entered variables, no (that includes variables entered with search and replace).
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.
Post Reply