<?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[Float aus Edit sicher abfragen]]></title><description><![CDATA[<p>hi,</p>
<p>wie kann ich sicher abfragen das in einem Edit eine Float zahl drin steht?</p>
<p>es gibt ja die Funktion StrToFloatDef, aber die gibt auch nen fehler raus wenn eine 0 in dem feld steht, und mir ist neu das eine 0 bzw. 0,0 keine float zahl sein soll.</p>
<p>Bin für jede hilfe Dankbar, ich weiß echt nichtmehr weiter!! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/192078/float-aus-edit-sicher-abfragen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 20:18:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/192078.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 10 Sep 2007 11:40:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Float aus Edit sicher abfragen on Mon, 10 Sep 2007 11:40:41 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>wie kann ich sicher abfragen das in einem Edit eine Float zahl drin steht?</p>
<p>es gibt ja die Funktion StrToFloatDef, aber die gibt auch nen fehler raus wenn eine 0 in dem feld steht, und mir ist neu das eine 0 bzw. 0,0 keine float zahl sein soll.</p>
<p>Bin für jede hilfe Dankbar, ich weiß echt nichtmehr weiter!! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362503</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362503</guid><dc:creator><![CDATA[verzweifelter]]></dc:creator><pubDate>Mon, 10 Sep 2007 11:40:41 GMT</pubDate></item><item><title><![CDATA[Reply to Float aus Edit sicher abfragen on Mon, 10 Sep 2007 11:42:58 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Nimm nur StrToFloat. Das wirft eine Exceptions wenn die Umwandlung nicht möglich ist.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362505</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362505</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 10 Sep 2007 11:42:58 GMT</pubDate></item><item><title><![CDATA[Reply to Float aus Edit sicher abfragen on Mon, 10 Sep 2007 14:03:51 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>wie akari sagte.<br />
Du kannst das per try ... catch machen.</p>
<p>Bsp.:</p>
<pre><code class="language-cpp">try {
   StrToFloat(Edit1-&gt;Text);
   Application-&gt;MessageBox(&quot;Eingabe OK!&quot;, &quot;&quot;, MB_OK);
} catch (...) 
   {
   Application-&gt;MessageBox(&quot;Eingabe ist kein Float Wert!&quot;, &quot;&quot;, MB_OK);
   }
</code></pre>
<p>das catch (...) fängt alle Errors ab ... da kannst du auch nur Specielle Errormeldungen abfangen ...</p>
<p>Aber beim Builder kommt (solange du compilierst) trotzdem ne Fehlermeldung ... das kann man irgendwo ausstellen ... habe aber nicht den Builder zur Hand ... und weiß das nicht auswendig.</p>
<p>Liebe Grüße!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362615</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362615</guid><dc:creator><![CDATA[Thoms]]></dc:creator><pubDate>Mon, 10 Sep 2007 14:03:51 GMT</pubDate></item><item><title><![CDATA[Reply to Float aus Edit sicher abfragen on Mon, 10 Sep 2007 14:51:49 GMT]]></title><description><![CDATA[<p>Eine weitere Möglichkeit wäre OvcNumericField aus den Orpheus Components (frei auf Source Forge erhältlich), die kannst Du maskieren und direkt als Float ausgeben OvcNumericField1-&gt;AsFloat, weiterhin haben die ein onError in den Du Deine Fehlermeldung packen kannst.</p>
<p>Gruß myerscola</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362644</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362644</guid><dc:creator><![CDATA[myerscola]]></dc:creator><pubDate>Mon, 10 Sep 2007 14:51:49 GMT</pubDate></item><item><title><![CDATA[Reply to Float aus Edit sicher abfragen on Mon, 10 Sep 2007 14:55:09 GMT]]></title><description><![CDATA[<p>Danke,<br />
hat mir weitergeholfen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1362646</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1362646</guid><dc:creator><![CDATA[verzweifelter]]></dc:creator><pubDate>Mon, 10 Sep 2007 14:55:09 GMT</pubDate></item></channel></rss>