<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to How to search/replace in a single POU only ?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/79e30a06b5/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/79e30a06b5/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/79e30a06b5/</id><updated>2020-02-27T14:02:16.071000Z</updated><subtitle>Recent posts to How to search/replace in a single POU only ?</subtitle><entry><title>How to search/replace in a single POU only ?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/79e30a06b5/?limit=25#7c71" rel="alternate"/><published>2020-02-27T14:02:16.071000Z</published><updated>2020-02-27T14:02:16.071000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.comc9b1f2190ea6a2bdd98c4dbf07e3d000f960a3cb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; scott_cunningham&lt;/p&gt;
&lt;p&gt;What about using the Refactoring functionality?  Highlight D5 and right-click and choose Refactoring (or EDIT -&amp;gt; Refactoring) - replace with D9.  This handles scope much better.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>How to search/replace in a single POU only ?</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/79e30a06b5/?limit=25#b565" rel="alternate"/><published>2020-02-27T14:02:15.281000Z</published><updated>2020-02-27T14:02:15.281000Z</updated><author><name>pnn</name><uri>https://forge.codesys.com/u/pnn/</uri></author><id>https://forge.codesys.com4a8337f9b060e46cd728ef2ab2d0b0dd93b3e692</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;today I tried to modify some variable names in a single SFC POU via find/replace, and to my surprise this seems impossible (or, no surprise, I missed something).  &lt;/p&gt;
&lt;p&gt;What I want is to replace string 'D5' with 'D9' in the code of one SFC POU named 'Station9'. &lt;br/&gt;
After CTRL+F, I see a Find dialog. If for 'Search:' I select 'Entire project' it's OK- all occurrences of what I look for are correctly listed - but all the occurrences in the entire project, and I want in a single POU only. &lt;/p&gt;
&lt;p&gt;If I select 'Active Editor' with active editor being my SFC POU, it finds only matches in var declarations and step &amp;amp; transition names. Matches in step/transition code are missed.&lt;/p&gt;
&lt;p&gt;If I click ... button, select 'Within the following objects', tick ALL the boxes, and set Name filter  to &lt;em&gt;Station9&lt;/em&gt; - again it works as in the 'Active Editor' case - finds matches in vars &amp;amp; step/transition names, but not in code.&lt;/p&gt;
&lt;p&gt;So how to do what I want? &lt;br/&gt;
In v.2.3 it's possible to select one or more POUs as a target for a global find/replace, can this be done in v.3.5 ?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>