<?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[abfrage editfeld]]></title><description><![CDATA[<p>HALLO<br />
HAB EIN PROBLEM.<br />
hab ein editfeld und das wird nach eingabe abgefragt.<br />
die variable dafür heißt m_Barcodelaenge2of5ITFmin,die hat einen wertebereich von 1-30.<br />
beim ausführen bringt er aber auch den fehler,wenn man eine zahl von 1...30 eingibt.<br />
das mit UpdateData(TRUE); und UpdateData(FALSE); hab ich auch schon probiert.<br />
wie kann ich das problem beheben ?</p>
<p>quellcode:</p>
<pre><code class="language-cpp">void CBCS1504Dlg::EnChangeEDITBarcodelaenge2of5ITFmin() 
{
    if((m_Barcodelaenge2of5ITFmin &lt; 1) || (m_Barcodelaenge2of5ITFmin &gt; 30))
       {	
	AfxMessageBox(&quot;Werteingabe ausserhalb des Bereiches !&quot;);
       }
}
</code></pre>
<p>mfg<br />
fevernova</p>
<p><strong>Wir haben Code Tags <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></strong></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/50613/abfrage-editfeld</link><generator>RSS for Node</generator><lastBuildDate>Sun, 31 May 2026 05:34:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/50613.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Oct 2003 12:42:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to abfrage editfeld on Wed, 01 Oct 2003 14:29:19 GMT]]></title><description><![CDATA[<p>HALLO<br />
HAB EIN PROBLEM.<br />
hab ein editfeld und das wird nach eingabe abgefragt.<br />
die variable dafür heißt m_Barcodelaenge2of5ITFmin,die hat einen wertebereich von 1-30.<br />
beim ausführen bringt er aber auch den fehler,wenn man eine zahl von 1...30 eingibt.<br />
das mit UpdateData(TRUE); und UpdateData(FALSE); hab ich auch schon probiert.<br />
wie kann ich das problem beheben ?</p>
<p>quellcode:</p>
<pre><code class="language-cpp">void CBCS1504Dlg::EnChangeEDITBarcodelaenge2of5ITFmin() 
{
    if((m_Barcodelaenge2of5ITFmin &lt; 1) || (m_Barcodelaenge2of5ITFmin &gt; 30))
       {	
	AfxMessageBox(&quot;Werteingabe ausserhalb des Bereiches !&quot;);
       }
}
</code></pre>
<p>mfg<br />
fevernova</p>
<p><strong>Wir haben Code Tags <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></strong></p>
]]></description><link>https://www.c-plusplus.net/forum/post/364252</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/364252</guid><dc:creator><![CDATA[fevernova]]></dc:creator><pubDate>Wed, 01 Oct 2003 14:29:19 GMT</pubDate></item><item><title><![CDATA[Reply to abfrage editfeld on Wed, 01 Oct 2003 13:01:52 GMT]]></title><description><![CDATA[<p>UpdateData(FALSE);<br />
vor der if-Schleife</p>
<p>Das Problem daran ist dann aber, wenn ein User versucht die Zahl zu löschen, kommt auch die Fehlermeldung.<br />
Um das zu vermeiden solltest Du vielleicht mit einem String-Feld arbeiten und das leere EditFeld berücksichtigen.</p>
<p>Gruß<br />
Chris</p>
<p>PS: Eventuell solltest Du den Werte-Bereich auch in der Fehlermeldung angeben zu besseren Orientierung für den User</p>
]]></description><link>https://www.c-plusplus.net/forum/post/364277</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/364277</guid><dc:creator><![CDATA[MuehBln]]></dc:creator><pubDate>Wed, 01 Oct 2003 13:01:52 GMT</pubDate></item><item><title><![CDATA[Reply to abfrage editfeld on Wed, 01 Oct 2003 14:33:30 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void CBCS1504Dlg::EnChangeEDITBarcodelaenge2of5ITFmin() 
{
    UpdateData(TRUE);
    if(m_Barcodelaenge2of5ITFmin &lt; 1 || m_Barcodelaenge2of5ITFmin &gt; 30)
    {	
	AfxMessageBox(&quot;Werteingabe ausserhalb des Bereiches !&quot;);
    }
}
</code></pre>
<p>So sollte es gehen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/364388</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/364388</guid><dc:creator><![CDATA[C-O-M-M-A-N-D-E-R]]></dc:creator><pubDate>Wed, 01 Oct 2003 14:33:30 GMT</pubDate></item><item><title><![CDATA[Reply to abfrage editfeld on Wed, 01 Oct 2003 14:35:14 GMT]]></title><description><![CDATA[<p>schau mal hier rein...<br />
müsste helfen<br />
[url]<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=49893" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=49893</a><br />
[/url]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/364391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/364391</guid><dc:creator><![CDATA[sarasne]]></dc:creator><pubDate>Wed, 01 Oct 2003 14:35:14 GMT</pubDate></item><item><title><![CDATA[Reply to abfrage editfeld on Thu, 02 Oct 2003 06:48:47 GMT]]></title><description><![CDATA[<p>so, nun vielen dank an euch alle. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /><br />
mfg<br />
fevernova</p>
]]></description><link>https://www.c-plusplus.net/forum/post/364733</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/364733</guid><dc:creator><![CDATA[fevernova]]></dc:creator><pubDate>Thu, 02 Oct 2003 06:48:47 GMT</pubDate></item></channel></rss>