<?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[if soll prüfen ob eingabe erfolgt ist ! wie ?]]></title><description><![CDATA[<p>also so geht es nicht :</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
 if(Edit1 == &quot;&quot;)
 {
 ShowMessage(&quot;Nix da&quot;);
 }
 if (Edit2 == &quot;&quot;)
 {
 ShowMessage(&quot;Nix da&quot;);
 }
 else
 {
a=random(Edit1-&gt;Text.ToInt())+1;
b=random(Edit2-&gt;Text.ToInt())+8;
c=a+b-a+b+b;
Label1-&gt;Caption=c;
}
}
</code></pre>
<p>ich möchte halt wenn der user nix eingegeben hat hin nen msgbox ausgeben oder von mir aus auch was anderes blos den fehler abfangen.</p>
<p>jemand nen TIP?</p>
<p>mfg</p>
<p>|23|</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/82918/if-soll-prüfen-ob-eingabe-erfolgt-ist-wie</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 13:38:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/82918.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Aug 2004 08:38:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to if soll prüfen ob eingabe erfolgt ist ! wie ? on Mon, 16 Aug 2004 08:39:03 GMT]]></title><description><![CDATA[<p>also so geht es nicht :</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
 if(Edit1 == &quot;&quot;)
 {
 ShowMessage(&quot;Nix da&quot;);
 }
 if (Edit2 == &quot;&quot;)
 {
 ShowMessage(&quot;Nix da&quot;);
 }
 else
 {
a=random(Edit1-&gt;Text.ToInt())+1;
b=random(Edit2-&gt;Text.ToInt())+8;
c=a+b-a+b+b;
Label1-&gt;Caption=c;
}
}
</code></pre>
<p>ich möchte halt wenn der user nix eingegeben hat hin nen msgbox ausgeben oder von mir aus auch was anderes blos den fehler abfangen.</p>
<p>jemand nen TIP?</p>
<p>mfg</p>
<p>|23|</p>
]]></description><link>https://www.c-plusplus.net/forum/post/583521</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/583521</guid><dc:creator><![CDATA[*23*]]></dc:creator><pubDate>Mon, 16 Aug 2004 08:39:03 GMT</pubDate></item><item><title><![CDATA[Reply to if soll prüfen ob eingabe erfolgt ist ! wie ? on Mon, 16 Aug 2004 08:51:53 GMT]]></title><description><![CDATA[<p>versuchs mal mit</p>
<pre><code>Edit1-&gt;Text == &quot;&quot;
</code></pre>
<p>in den Abfragen</p>
<p>Edit: mir fällt grad auf, dass in <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=82687" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=82687</a> dieser Tip schonmal kam...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/583527</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/583527</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Mon, 16 Aug 2004 08:51:53 GMT</pubDate></item><item><title><![CDATA[Reply to if soll prüfen ob eingabe erfolgt ist ! wie ? on Mon, 16 Aug 2004 08:50:24 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>Edit-&gt;Text.</p>
<p>Dann wäre das Lesen eines Tutorials nötig. Stichwort: Objekt, Methode, Eigenschaft.</p>
<p>Grüße,<br />
Jochen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/583531</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/583531</guid><dc:creator><![CDATA[JoKo]]></dc:creator><pubDate>Mon, 16 Aug 2004 08:50:24 GMT</pubDate></item><item><title><![CDATA[Reply to if soll prüfen ob eingabe erfolgt ist ! wie ? on Mon, 16 Aug 2004 08:53:42 GMT]]></title><description><![CDATA[<p>Oder wenn jemand ganz viele Editfelder hat:</p>
<pre><code class="language-cpp">bool bError=false;
for(int i=0;i&lt;ComponentCount;++i)
  if(Components[i]-&gt;ClassNameIs(&quot;TEdit&quot;) &amp;&amp; dynamic_cast&lt;TEdit*&gt;(Components[i])-&gt;Text==&quot;&quot;)
  {
    bError=true;
    break;
  }
if(bError)
  ShowMessage(&quot;Nix da!&quot;);
else
  //...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/583533</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/583533</guid><dc:creator><![CDATA[Windoof]]></dc:creator><pubDate>Mon, 16 Aug 2004 08:53:42 GMT</pubDate></item><item><title><![CDATA[Reply to if soll prüfen ob eingabe erfolgt ist ! wie ? on Mon, 16 Aug 2004 09:01:32 GMT]]></title><description><![CDATA[<p>jow hast vollkommen Recht ich sag nur &quot;Wer lesen kann ist klar im Vorteil&quot;<br />
naja hab das -&gt;text einfach überlesen <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="😞"
    /> sorry</p>
<p>jemand ne idee was ich als nächstes coden kann ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/583537</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/583537</guid><dc:creator><![CDATA[*23*]]></dc:creator><pubDate>Mon, 16 Aug 2004 09:01:32 GMT</pubDate></item><item><title><![CDATA[Reply to if soll prüfen ob eingabe erfolgt ist ! wie ? on Mon, 16 Aug 2004 09:06:55 GMT]]></title><description><![CDATA[<p>Du solltest du dir auf jeden Fall angewöhnen, auf gemachte Vorschläge auch zu reagieren (siehe o.g. Thread).</p>
<p>Thema geschlossen, da<br />
- inhaltliches Doppelposting<br />
- Frage beantwortet<br />
- Nachfrage OffTopic</p>
]]></description><link>https://www.c-plusplus.net/forum/post/583546</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/583546</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Mon, 16 Aug 2004 09:06:55 GMT</pubDate></item></channel></rss>