<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[RemoteXY community — Edit Field]]></title>
		<link>https://forum.remotexy.com/viewtopic.php?id=1343</link>
		<atom:link href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1343&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Edit Field.]]></description>
		<lastBuildDate>Sun, 04 Jul 2021 04:00:15 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Edit Field]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4092#p4092</link>
			<description><![CDATA[<p>A good solution would be to check if the value in the input field has changed<br /></p><div class="codebox"><pre><code>if (RemoteXY.nombre_cycle_1 != nb_cycles_1) {  // value changed
  // you can check the range of the entered value
  if ((RemoteXY.nombre_cycle_1 &lt; 10) || (RemoteXY.nombre_cycle_1 &gt; 20)) {  // value out of range 10..20
    RemoteXY.nombre_cycle_1 = nb_cycles_1;   // return the previous value in the edit field
  }
  else {  // value in range
    nb_cycles_1 = RemoteXY.nombre_cycle_1;   // save value as previous 

    // some things if the edit field was changed

    itoa (nb_cycles_1, RemoteXY.cycles_restants_1, 10);
  }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (remotexy)]]></author>
			<pubDate>Sun, 04 Jul 2021 04:00:15 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4092#p4092</guid>
		</item>
		<item>
			<title><![CDATA[Re: Edit Field]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4088#p4088</link>
			<description><![CDATA[<p>Hello... first, can you edit your post and format code separately from comments.</p><p>Use the &lt;&gt; icon on the editor and paste your code in-between the two square bracketed labels</p><p>[ code ]<br />your code here<br />[ /code ]</p><p>Then can you explain a bit better your question... what do you mean by this?<br /></p><div class="quotebox"><blockquote><p>to add a condition</p></blockquote></div><p>And further clarification of this...</p><div class="quotebox"><blockquote><p>but only when a new value is entered</p></blockquote></div><p>I think this is to be expected... unless you also have something else updating the indicator</p>]]></description>
			<author><![CDATA[null@example.com (Gunner)]]></author>
			<pubDate>Sat, 03 Jul 2021 05:21:11 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4088#p4088</guid>
		</item>
		<item>
			<title><![CDATA[Edit Field]]></title>
			<link>https://forum.remotexy.com/viewtopic.php?pid=4087#p4087</link>
			<description><![CDATA[<p>Dear all,</p><p>I hope someone will be able to help me.<br />I would like to know if it was possible to add a condition with the edit field when we press the button &quot;Enter&quot;.<br />For example, I write 400 to the edit field, then the indicator change his value to 400, but only when a new value is entered. Here is an example of my Arduino code:</p><p>&nbsp; nb_cycles_1= RemoteXY.nombre_cycle_1;<br />&nbsp; itoa ( nb_cycles_1, RemoteXY.cycles_restants_1, 10);</p><p>It does it every time, i would get something like:</p><p>if (A new value is entered to the edit field nombre_cycle_1) then{<br />&nbsp; nb_cycles_1= RemoteXY.nombre_cycle_1;<br />&nbsp; itoa ( nb_cycles_1, RemoteXY.cycles_restants_1, 10);<br />}<br />I hope someone will be able to help me &lt;3</p><p>Charlie.</p>]]></description>
			<author><![CDATA[null@example.com (bouvier.charlie)]]></author>
			<pubDate>Fri, 02 Jul 2021 09:54:52 +0000</pubDate>
			<guid>https://forum.remotexy.com/viewtopic.php?pid=4087#p4087</guid>
		</item>
	</channel>
</rss>
