<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to create substring]]></title><description><![CDATA[<p dir="auto">is it possible in a rexlang fuction block that i have a string (00011110101010101010101)<br />
split into 2 strings</p>
]]></description><link>https://forum.rexygen.com/topic/101/how-to-create-substring</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 11:51:48 GMT</lastBuildDate><atom:link href="https://forum.rexygen.com/topic/101.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 06 Apr 2020 14:39:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to create substring on Fri, 10 Apr 2020 19:09:20 GMT]]></title><description><![CDATA[<p dir="auto">Please start a new topic for questions not directly related to the original question.</p>
<p dir="auto">There is no such block, you must combine the existing blocks to achieve this.</p>
<p dir="auto">Jaroslav</p>
]]></description><link>https://forum.rexygen.com/post/362</link><guid isPermaLink="true">https://forum.rexygen.com/post/362</guid><dc:creator><![CDATA[jaroslav_sobota]]></dc:creator><pubDate>Fri, 10 Apr 2020 19:09:20 GMT</pubDate></item><item><title><![CDATA[Reply to How to create substring on Thu, 09 Apr 2020 09:17:45 GMT]]></title><description><![CDATA[<p dir="auto">Thanks it works</p>
<p dir="auto">Is there also a function block that if the input is high it will bring the analog output to 100% if it is still high then counts back to 0% and if it is still high it will go back to 100%?</p>
]]></description><link>https://forum.rexygen.com/post/359</link><guid isPermaLink="true">https://forum.rexygen.com/post/359</guid><dc:creator><![CDATA[martijnperdaan]]></dc:creator><pubDate>Thu, 09 Apr 2020 09:17:45 GMT</pubDate></item><item><title><![CDATA[Reply to How to create substring on Wed, 08 Apr 2020 09:39:23 GMT]]></title><description><![CDATA[<p dir="auto">Hello Martijn,<br />
see this example project: <a href="/assets/uploads/files/1586338407636-0203-03_built-in_functions.zip">0203-03 Built-in functions</a></p>
<p dir="auto">As for switching string signals, use the <a href="https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/SELSOCT.html">SELSOCT block</a>. For 20 strings, you'll need 3 of them. Did you miss it in the <a href="https://www.rexygen.com/doc/ENGLISH/MANUALS/BRef/BRef_ENGch11.html">list of functions blocks for processing string signals in REXYGEN</a>?</p>
<p dir="auto">Hope this helps, let me know.</p>
<p dir="auto">Jaroslav</p>
]]></description><link>https://forum.rexygen.com/post/358</link><guid isPermaLink="true">https://forum.rexygen.com/post/358</guid><dc:creator><![CDATA[jaroslav_sobota]]></dc:creator><pubDate>Wed, 08 Apr 2020 09:39:23 GMT</pubDate></item><item><title><![CDATA[Reply to How to create substring on Tue, 07 Apr 2020 21:17:12 GMT]]></title><description><![CDATA[<p dir="auto">I succeeded through the MID block.  But can I also switch between string that I get, for example, string 1 when input 1 goes high and string 2 when input goes high and so on until string 20</p>
]]></description><link>https://forum.rexygen.com/post/357</link><guid isPermaLink="true">https://forum.rexygen.com/post/357</guid><dc:creator><![CDATA[martijnperdaan]]></dc:creator><pubDate>Tue, 07 Apr 2020 21:17:12 GMT</pubDate></item><item><title><![CDATA[Reply to How to create substring on Tue, 07 Apr 2020 17:47:05 GMT]]></title><description><![CDATA[<p dir="auto">can you give me an example of a piece of code where I use this string strsub (str, idx, len) whatever I try I keep getting an error Error compiling file 'srcfile.c' (line 31): syntax error</p>
]]></description><link>https://forum.rexygen.com/post/356</link><guid isPermaLink="true">https://forum.rexygen.com/post/356</guid><dc:creator><![CDATA[martijnperdaan]]></dc:creator><pubDate>Tue, 07 Apr 2020 17:47:05 GMT</pubDate></item><item><title><![CDATA[Reply to How to create substring on Tue, 07 Apr 2020 06:41:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.rexygen.com/uid/92">@martijnperdaan</a><br />
Hi Martijn,</p>
<p dir="auto"><strong>REXLANG:</strong><br />
you can create substring in REXLANG using function</p>
<pre><code>string strsub(str,idx,len)
</code></pre>
<p dir="auto"><em>Returns a substring of length len starting at index idx</em></p>
<p dir="auto">For more details on String functions in REXLANG see docs: <a href="https://www.rexygen.com/doc/PDF/ENGLISH/BRef_ENG.pdf#page=442">https://www.rexygen.com/doc/PDF/ENGLISH/BRef_ENG.pdf#page=442</a></p>
<p dir="auto"><strong>Function blocks:</strong><br />
It is also possible to create substring using function block called MID.<br />
For more details on String Function blocks see docs:<br />
<a href="https://www.rexygen.com/doc/PDF/ENGLISH/BRef_ENG.pdf#page=279">https://www.rexygen.com/doc/PDF/ENGLISH/BRef_ENG.pdf#page=279</a></p>
<p dir="auto">Regards, Tomas</p>
]]></description><link>https://forum.rexygen.com/post/354</link><guid isPermaLink="true">https://forum.rexygen.com/post/354</guid><dc:creator><![CDATA[cechurat]]></dc:creator><pubDate>Tue, 07 Apr 2020 06:41:46 GMT</pubDate></item><item><title><![CDATA[Reply to How to create substring on Mon, 06 Apr 2020 20:08:22 GMT]]></title><description><![CDATA[<p dir="auto">the first 5 numbers in string 1 the other 5 in string 2 the rest in string 3</p>
]]></description><link>https://forum.rexygen.com/post/353</link><guid isPermaLink="true">https://forum.rexygen.com/post/353</guid><dc:creator><![CDATA[martijnperdaan]]></dc:creator><pubDate>Mon, 06 Apr 2020 20:08:22 GMT</pubDate></item></channel></rss>