<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Error WSTRING_TO_INT</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a8bd77f86c/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a8bd77f86c/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/a8bd77f86c/</id><updated>2020-02-27T14:00:25.328000Z</updated><subtitle>Recent posts to Error WSTRING_TO_INT</subtitle><entry><title>Error WSTRING_TO_INT</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a8bd77f86c/?limit=25#a5c5" rel="alternate"/><published>2020-02-27T14:00:25.328000Z</published><updated>2020-02-27T14:00:25.328000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.combf5096e345e36b7e9ebba1df4c4a8aab02b96f4d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Matthias S.&lt;/p&gt;
&lt;p&gt;Hello TimvH, shooter,&lt;/p&gt;
&lt;p&gt;thank you for your help.&lt;/p&gt;
&lt;p&gt;The solution is OK, but I think "a" and "A" should both work.&lt;br/&gt;
But for now it's OK.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br/&gt;
Matthias&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error WSTRING_TO_INT</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a8bd77f86c/?limit=25#06ef" rel="alternate"/><published>2020-02-27T14:00:24.543000Z</published><updated>2020-02-27T14:00:24.543000Z</updated><author><name>timvh</name><uri>https://forge.codesys.com/u/timvh/</uri></author><id>https://forge.codesys.com9b186f846be2866489e9edd7f86615c9b6234d1a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Matthias,&lt;/p&gt;
&lt;p&gt;You should use capital letters. "16#A" will return 10.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error WSTRING_TO_INT</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a8bd77f86c/?limit=25#897b" rel="alternate"/><published>2020-02-27T14:00:24.272000Z</published><updated>2020-02-27T14:00:24.272000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comdd1fee00fd053286b3f22bbb9c873c26bbc18885</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;wstring name is fault and the first character is a 1 giving 37&lt;br/&gt;
use only the A int he string&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Error WSTRING_TO_INT</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/a8bd77f86c/?limit=25#0ffe" rel="alternate"/><published>2020-02-27T14:00:23.962000Z</published><updated>2020-02-27T14:00:23.962000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com4223ddbbc5d9a9b883e2303f98d6b026df2e7333</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; Matthias S.&lt;/p&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have a problem with the following code:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="n"&gt;NumberInString&lt;/span&gt; &lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;WSTRING&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;20&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="s2"&gt;"16#a"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;Number&lt;/span&gt;&lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt; &lt;span class="err"&gt; &lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt; &lt;span class="n"&gt;INT&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;Number&lt;/span&gt; &lt;span class="o"&gt;:=&lt;/span&gt; &lt;span class="n"&gt;WSTRING_TO_INT&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="n"&gt;NumberInString&lt;/span&gt;&lt;span class="o"&gt;);&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;I expect the value decimal 10 but I get the value 37.&lt;br/&gt;
What am I doing wrong?&lt;/p&gt;
&lt;p&gt;Thanks in advance for your help.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br/&gt;
Matthias&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>