<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Why SA0175:  Suspicious operation on string: Possible index access</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/28ae56cbcf/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/28ae56cbcf/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/28ae56cbcf/</id><updated>2023-06-01T13:32:56.515000Z</updated><subtitle>Recent posts to Why SA0175:  Suspicious operation on string: Possible index access</subtitle><entry><title>Why SA0175:  Suspicious operation on string: Possible index access</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/28ae56cbcf/?limit=25#da9e" rel="alternate"/><published>2023-06-01T13:32:56.515000Z</published><updated>2023-06-01T13:32:56.515000Z</updated><author><name>DavidBo</name><uri>https://forge.codesys.com/u/davidbo/</uri></author><id>https://forge.codesys.com043c0f8a3ec98d219ac8738f69390c230952bf84</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;FUNCTION_BLOCK Pump&lt;/span&gt;
&lt;span class="err"&gt;VAR&lt;/span&gt;
&lt;span class="err"&gt;    idStr: STRING:='    ';&lt;/span&gt;
&lt;span class="err"&gt;    pstr: POINTER TO STRING:=ADR(idStr);&lt;/span&gt;
&lt;span class="err"&gt;END_VAR&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;In the declaration above I get the following error&lt;br/&gt;
SA0175:  Suspicious operation on string: Possible index access 'ADR(idStr)'.&lt;br/&gt;
How do I solve that problem?&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>