<?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[Aktion abbrechen]]></title><description><![CDATA[<p>Ich habe eine Frage.<br />
Ich hab einen Button, der wenn man draufdrück was unterschiedliches macht:</p>
<pre><code class="language-cpp">if (Int == 0)
{
ShowMessage(&quot;0&quot;);
Int = 1;
// hier soll die Aktion abgebrochen werden
}
if (Int == 1)
{
ShowMessage(&quot;1&quot;);
Int = 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/127922/aktion-abbrechen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Jul 2026 03:49:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/127922.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Nov 2005 18:47:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Aktion abbrechen on Mon, 28 Nov 2005 18:47:04 GMT]]></title><description><![CDATA[<p>Ich habe eine Frage.<br />
Ich hab einen Button, der wenn man draufdrück was unterschiedliches macht:</p>
<pre><code class="language-cpp">if (Int == 0)
{
ShowMessage(&quot;0&quot;);
Int = 1;
// hier soll die Aktion abgebrochen werden
}
if (Int == 1)
{
ShowMessage(&quot;1&quot;);
Int = 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/929163</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/929163</guid><dc:creator><![CDATA[HelpMe]]></dc:creator><pubDate>Mon, 28 Nov 2005 18:47:04 GMT</pubDate></item><item><title><![CDATA[Reply to Aktion abbrechen on Mon, 28 Nov 2005 18:48:43 GMT]]></title><description><![CDATA[<p>Also am einfachsten is glaub ich:</p>
<pre><code class="language-cpp">if (Int == 0)
{
ShowMessage(&quot;0&quot;);
Int = 1;
goto ende;
}
if (Int == 1)
{
ShowMessage(&quot;1&quot;);
Int = 0;
}
ende:
</code></pre>
<p>Ich hoffe ich konnte dir helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/929166</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/929166</guid><dc:creator><![CDATA[Mr. Plutonium]]></dc:creator><pubDate>Mon, 28 Nov 2005 18:48:43 GMT</pubDate></item><item><title><![CDATA[Reply to Aktion abbrechen on Mon, 28 Nov 2005 19:11:24 GMT]]></title><description><![CDATA[<p>Wenn der Code wirklich so ausschaut, würd ich halt else if nehmen.</p>
<pre><code class="language-cpp">if (Int == 0)
{
ShowMessage(&quot;0&quot;);
Int = 1;
// hier soll die Aktion abgebrochen werden
}
else if (Int == 1)
{
ShowMessage(&quot;1&quot;);
Int = 0;
}
</code></pre>
<p>Ansonsten würd ichs in eine Funktion packen und per return abbrechen.</p>
<pre><code class="language-cpp">void Check( int &amp;Int )
{
 if (Int == 0)
 {
 ShowMessage(&quot;0&quot;);
 Int = 1;
 return;
 }
 if (Int == 1)
 {
 ShowMessage(&quot;1&quot;);
 Int = 0;
 }
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/929190</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/929190</guid><dc:creator><![CDATA[Gap]]></dc:creator><pubDate>Mon, 28 Nov 2005 19:11:24 GMT</pubDate></item><item><title><![CDATA[Reply to Aktion abbrechen on Mon, 28 Nov 2005 19:11:30 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>nein, Mr. Plutonium will ja sicher wissen, wie diese Einstellung gespeichert werden kann. Und mit Goto würde ich auch nicht arbeiten, wenn es nicht eine andere Möglichkeit gibt.</p>
<p>Du must die variable einfach als Member des Forms erstellen.<br />
Dazu trägst du die Deklaration der Variable in die Header-Datei des Forms, unter das Schlüsselwort <em>private</em>.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/929191</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/929191</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 28 Nov 2005 19:11:30 GMT</pubDate></item><item><title><![CDATA[Reply to Aktion abbrechen on Mon, 28 Nov 2005 19:34:41 GMT]]></title><description><![CDATA[<p>Vielen Dank ihr habt mir sehr geholfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/929214</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/929214</guid><dc:creator><![CDATA[HelpMe]]></dc:creator><pubDate>Mon, 28 Nov 2005 19:34:41 GMT</pubDate></item></channel></rss>