<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Get text from textlist</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/c7d98784dd/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/c7d98784dd/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/c7d98784dd/</id><updated>2024-09-19T12:34:55.623000Z</updated><subtitle>Recent posts to Get text from textlist</subtitle><entry><title>Get text from textlist</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/c7d98784dd/?limit=25#eb5b" rel="alternate"/><published>2024-09-19T12:34:55.623000Z</published><updated>2024-09-19T12:34:55.623000Z</updated><author><name>jari-koivuluoma</name><uri>https://forge.codesys.com/u/jari-koivuluoma/</uri></author><id>https://forge.codesys.com723ab3167b1507b642f50eeeef64766da07e1647</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Are your texts WSTRING? maybe you should try WSTRING versions.&lt;/p&gt;
&lt;p&gt;I have a vague memory of having to switch to TextListUtils library also.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get text from textlist</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/c7d98784dd/?limit=25#b75f/f7df" rel="alternate"/><published>2024-06-03T06:36:54.639000Z</published><updated>2024-06-03T06:36:54.639000Z</updated><author><name>viksym</name><uri>https://forge.codesys.com/u/viksym/</uri></author><id>https://forge.codesys.comb125c12438bfa1e6355fdde16a9ffb6ac380bf8b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you, but sadly I already tried this and it also doesn't work. It's not doing anything. &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get text from textlist</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/c7d98784dd/?limit=25#b75f" rel="alternate"/><published>2024-05-31T13:15:26.356000Z</published><updated>2024-05-31T13:15:26.356000Z</updated><author><name>paro</name><uri>https://forge.codesys.com/u/paro/</uri></author><id>https://forge.codesys.com3b71c85cd003f7e7c81fc3c4780ca4acc34423b4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I think you will find something in the libary TexlistUtils: &lt;a href="https://content.helpme-codesys.com/en/libs/TextListUtils/Current/index.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/libs/TextListUtils/Current/index.html&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get text from textlist</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/c7d98784dd/?limit=25#dcbc" rel="alternate"/><published>2024-05-31T09:13:13.105000Z</published><updated>2024-05-31T09:13:13.105000Z</updated><author><name>viksym</name><uri>https://forge.codesys.com/u/viksym/</uri></author><id>https://forge.codesys.com6948b6b84d40b93b282d3c4831110205a5777b7f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Does anybody know how to get a specific text from a text list within a program. Obviously it works in a visualization, but because I will have an HMI that has it's own system and I will have to send variables to this HMI via an OPC UA connection, I need to be able to get a text into a string.&lt;/p&gt;
&lt;p&gt;I tried using the VisuElems like this, but it only returns an empty "" and nothing else. &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="kr"&gt;IF&lt;/span&gt; &lt;span class="n"&gt;trig&lt;/span&gt; &lt;span class="kr"&gt;THEN&lt;/span&gt;
    &lt;span class="n"&gt;sText&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;VisuElems&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cmpDynamictext&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DynamicTextGetDefaultText&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ADR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sTextList&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;ADR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sAlarmID&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="o"&gt;//&lt;/span&gt;&lt;span class="n"&gt;sText&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;VisuElems&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cmpDynamictext&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;DynamicTextGetText&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ADR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sTextList&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;ADR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sAlarmID&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;trig&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;FALSE&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;END_IF&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Any help and idea is highly appreciated because I am getting desperate here. &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>