<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Retrieving text from TextList.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/58d06e968f/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/58d06e968f/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/58d06e968f/</id><updated>2020-02-27T13:58:01.827000Z</updated><subtitle>Recent posts to Retrieving text from TextList.</subtitle><entry><title>Retrieving text from TextList.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/58d06e968f/?limit=25#088c" rel="alternate"/><published>2020-02-27T13:58:01.827000Z</published><updated>2020-02-27T13:58:01.827000Z</updated><author><name>lst-tech</name><uri>https://forge.codesys.com/u/lst-tech/</uri></author><id>https://forge.codesys.com7f392d6965a524c8363b1a5d29e0e93ea10fd0e5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Yes, I tried this one. The Problem is, that the file coding differs from "normal" text list (utf-8 / ANSI).&lt;br/&gt;
It seems that UTF-8 isn't working with DynamicTextGet... My solution is to read it manually with FileOpen/FileGets (According to the CSV reader example).&lt;/p&gt;
&lt;p&gt;Thanks for your support&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retrieving text from TextList.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/58d06e968f/?limit=25#6a76" rel="alternate"/><published>2020-02-27T13:58:01.585000Z</published><updated>2020-02-27T13:58:01.585000Z</updated><author><name>e.kislov</name><uri>https://forge.codesys.com/u/e-kislov/</uri></author><id>https://forge.codesys.combb502514e0dcb112571f42cd5493ae75583c3958</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;lst_tech hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Does anybody know, if it's possible to retrieve Text from enums with textlist Support? The data is also saved as .txt file, but in UTF-8 which doesn't work with "DynamicTextGetText" etc..&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Did you try to use "DynamicTextGetTextW"?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retrieving text from TextList.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/58d06e968f/?limit=25#c64f" rel="alternate"/><published>2020-02-27T13:58:01.362000Z</published><updated>2020-02-27T13:58:01.362000Z</updated><author><name>lst-tech</name><uri>https://forge.codesys.com/u/lst-tech/</uri></author><id>https://forge.codesys.comce8365833255ace5f2b2a17dcb6b3c045f74bdee</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Does anybody know, if it's possible to retrieve Text from enums with textlist Support? The data is also saved as .txt file, but in UTF-8 which doesn't work with "DynamicTextGetText" etc..&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retrieving text from TextList.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/58d06e968f/?limit=25#f756" rel="alternate"/><published>2020-02-27T13:58:00.665000Z</published><updated>2020-02-27T13:58:00.665000Z</updated><author><name>learnetk</name><uri>https://forge.codesys.com/u/learnetk/</uri></author><id>https://forge.codesys.com40c4d0565ab2ed59dffb2ab769d525556fac9702</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Try this one&lt;/p&gt;
&lt;p&gt;&lt;a class="" href="https://forum.codesys.com//download/file.php?id=1416" rel="nofollow"&gt;TextList.project &lt;span&gt;&lt;span&gt;[123.08 KiB]&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retrieving text from TextList.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/58d06e968f/?limit=25#6c11" rel="alternate"/><published>2020-02-27T13:58:00.411000Z</published><updated>2020-02-27T13:58:00.411000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com2ad8423a4cfde13201fdefe270268d60668b55c1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; IC_Holtec&lt;/p&gt;
&lt;p&gt;Does somebody have an programing example, how to use DynamicTextGetText, because it dont Work for me.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retrieving text from TextList.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/58d06e968f/?limit=25#afc6" rel="alternate"/><published>2020-02-27T13:58:00.163000Z</published><updated>2020-02-27T13:58:00.163000Z</updated><author><name>XopHeT</name><uri>https://forge.codesys.com/u/xophet/</uri></author><id>https://forge.codesys.com1401a8c748a55f0bd1298819e5253b0179356362</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for your response!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retrieving text from TextList.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/58d06e968f/?limit=25#7218" rel="alternate"/><published>2020-02-27T13:57:59.870000Z</published><updated>2020-02-27T13:57:59.870000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com1e77bb7af3ffdfc3f7b6e4b2f5e4b98a61c8221b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It returns nothing if no language has been selected yet.&lt;br/&gt;
If you want to get the "default" text, then use:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&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;sTextListID&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;If the user has selected a language, or if this is set in the application you can use:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&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;sTextListID&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="o"&gt;^&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;What you can do is remember the latest selected language and load that at the start of the application.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="nv"&gt;At&lt;/span&gt; &lt;span class="nv"&gt;start&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;up&lt;/span&gt;: &lt;span class="nv"&gt;initialise&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;actual&lt;/span&gt; &lt;span class="nv"&gt;language&lt;/span&gt; &lt;span class="nv"&gt;with&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;last&lt;/span&gt; &lt;span class="nv"&gt;selected&lt;/span&gt; &lt;span class="nv"&gt;language&lt;/span&gt;
&lt;span class="k"&gt;IF&lt;/span&gt; &lt;span class="nv"&gt;xInit&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt;
   &lt;span class="nv"&gt;visuElems&lt;/span&gt;.&lt;span class="nv"&gt;CURRENTLANGUAGE&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;gvlPersistent&lt;/span&gt;.&lt;span class="nv"&gt;sSelectedLanguage&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
   &lt;span class="nv"&gt;xInit&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;FALSE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;span class="nv"&gt;END_IF&lt;/span&gt;
&lt;span class="o"&gt;//&lt;/span&gt; &lt;span class="nv"&gt;Remember&lt;/span&gt; &lt;span class="nv"&gt;the&lt;/span&gt; &lt;span class="nv"&gt;selected&lt;/span&gt; &lt;span class="nv"&gt;language&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nv"&gt;it&lt;/span&gt; &lt;span class="nv"&gt;is&lt;/span&gt; &lt;span class="nv"&gt;changed&lt;/span&gt; &lt;span class="nv"&gt;it&lt;/span&gt; &lt;span class="nv"&gt;needs&lt;/span&gt; &lt;span class="nv"&gt;to&lt;/span&gt; &lt;span class="nv"&gt;be&lt;/span&gt; &lt;span class="nv"&gt;activated&lt;/span&gt; &lt;span class="nv"&gt;again&lt;/span&gt; &lt;span class="nv"&gt;during&lt;/span&gt; &lt;span class="nv"&gt;start&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;up&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;gvlPersistent&lt;/span&gt;.&lt;span class="nv"&gt;sSelectedLanguage&lt;/span&gt; :&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;visuElems&lt;/span&gt;.&lt;span class="nv"&gt;CURRENTLANGUAGE&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>Retrieving text from TextList.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/58d06e968f/?limit=25#8965" rel="alternate"/><published>2020-02-27T13:57:59.625000Z</published><updated>2020-02-27T13:57:59.625000Z</updated><author><name>XopHeT</name><uri>https://forge.codesys.com/u/xophet/</uri></author><id>https://forge.codesys.com0f250a94a5b64431949ddaba4cd7b0f8fd8c4644</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;up&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Retrieving text from TextList.</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/58d06e968f/?limit=25#1160" rel="alternate"/><published>2020-02-27T13:57:58.803000Z</published><updated>2020-02-27T13:57:58.803000Z</updated><author><name>XopHeT</name><uri>https://forge.codesys.com/u/xophet/</uri></author><id>https://forge.codesys.com66e5189dffe51e9784e5ec84eb645c68cf02e94e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello!&lt;br/&gt;
Does anybody have an IDEA how could I retrieve text from TextList in my programm?&lt;br/&gt;
I have a list, for example:&lt;br/&gt;
0:a&lt;br/&gt;
2:b&lt;br/&gt;
54:c&lt;/p&gt;
&lt;p&gt;i saw function DynamicTextGetText, but I have no idea how to use it. It always returns '';&lt;br/&gt;
Thank you!&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>