<?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[Problem mit Gesamtberechnung]]></title><description><![CDATA[<p>Hi,<br />
also ich arbeite gerade an einem Projekt für die Schule, eine Art Reparaturwerkstatt. Man gibt die Art des Fahrzeuges an (ComboBox), dann das Autoteil (CheckBox) und dann den Grad der Beschädigung(ComboBox). Wenn man am Ende auf Berechnen drückt wird eine MessageBox mit den einzelnen Angaben ausgegeben(in etwa so (wenn alle Werte auf Null währen, was aber eigentlich nicht sein könnte):<br />
Elektrik 0,00 €<br />
Innenausstattung 0,00 €<br />
Karosserie 0,00 €<br />
Motor 0,00 €<br />
Reifen 0,00 €<br />
-----------------------<br />
Gesamt 0,00 €<br />
)<br />
Mein Problem ist jetzt, dass, wenn man nicht den ersten Punkt auswählt (in dem Falle &quot;Elektrik&quot;) bei allen Werten Null ausgegeben wird. Wenn ich aber den ersten Punkt aktiviere, werden alle Werte korrekt ausgegeben. Ich weiß echt nicht, woran das liegen könnte. Hier ist mal mein Quelltext:</p>
<pre><code>//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
float UnterBetrag[5], Gesamtbetrag, Elektrik, Innenausstattung, Motor, Reifen, Karosserie, Beschaedigung[3];
AnsiString gbetrag, ubetrag[5], gesamtrechnung;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
Beschaedigung[0]=1.25;
Beschaedigung[1]=1.5;
Beschaedigung[2]=1.75;
UnterBetrag[0]=0;
UnterBetrag[1]=0;
UnterBetrag[2]=0;
UnterBetrag[3]=0;
UnterBetrag[4]=0;
Gesamtbetrag=0;
gbetrag=&quot;&quot;;
}
//---------------------------------------------------------------------------

void __fastcall TForm1::ComboBox1Change(TObject *Sender)
{
GroupBox1-&gt;Enabled=true;
RadioButton1-&gt;Checked=false;
RadioButton2-&gt;Checked=false;
RadioButton3-&gt;Checked=false;
RadioButton4-&gt;Checked=false;
RadioButton5-&gt;Checked=false;
ComboBox2-&gt;Enabled=false;
ComboBox3-&gt;Enabled=false;
ComboBox4-&gt;Enabled=false;
ComboBox5-&gt;Enabled=false;
ComboBox6-&gt;Enabled=false;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton1Click(TObject *Sender)
{
ComboBox2-&gt;Enabled=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton1DblClick(TObject *Sender)
{
RadioButton1-&gt;Checked=false;
ComboBox2-&gt;Enabled=false;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton2Click(TObject *Sender)
{
ComboBox3-&gt;Enabled=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton2DblClick(TObject *Sender)
{
RadioButton2-&gt;Checked=false;
ComboBox3-&gt;Enabled=false;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton3DblClick(TObject *Sender)
{
RadioButton3-&gt;Checked=false;
ComboBox4-&gt;Enabled=false;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton3Click(TObject *Sender)
{
ComboBox4-&gt;Enabled=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton4Click(TObject *Sender)
{
ComboBox5-&gt;Enabled=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton4DblClick(TObject *Sender)
{
RadioButton4-&gt;Checked=false;
ComboBox5-&gt;Enabled=false;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton5Click(TObject *Sender)
{
ComboBox6-&gt;Enabled=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton5DblClick(TObject *Sender)
{
RadioButton5-&gt;Checked=false;
ComboBox6-&gt;Enabled=false;        
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
switch(Application-&gt;MessageBox(&quot;Wollen Sie das Programm wirklich beenden?&quot;, &quot;Beenden&quot;, MB_YESNO | MB_ICONQUESTION))
        {
        case IDYES:Close();
        }
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
if (GroupBox1-&gt;Enabled!=true)
        {
        Application-&gt;MessageBox(&quot;Geben Sie bitte den Autotyp an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
        }
else
        {
        if (ComboBox1-&gt;Text==&quot;Kombi&quot;)
                {
                Elektrik=300;
                Innenausstattung=200;
                Motor=400;
                Reifen=50;
                Karosserie=250;
                }
        if (ComboBox1-&gt;Text==&quot;Geländewagen&quot;)
                {
                Elektrik=300;
                Innenausstattung=200;
                Motor=400;
                Reifen=50;
                Karosserie=250;
                }
        if (ComboBox1-&gt;Text==&quot;Sportwagen&quot;)
                {
                Elektrik=300;
                Innenausstattung=200;
                Motor=400;
                Reifen=50;
                Karosserie=250;
                }
        if (ComboBox1-&gt;Text==&quot;Limousine&quot;)
                {
                Elektrik=300;
                Innenausstattung=200;
                Motor=400;
                Reifen=50;
                Karosserie=250;
                }
        if (RadioButton1-&gt;Checked==false&amp;&amp;RadioButton2-&gt;Checked==false&amp;&amp;RadioButton3-&gt;Checked==false&amp;&amp;RadioButton4-&gt;Checked==false&amp;&amp;RadioButton5-&gt;Checked==false)
                {
                Application-&gt;MessageBox(&quot;Geben Sie bitte das Autoteil an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                }
        else
                {
                if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot; - Beschädigung - &quot;)
                        {
                        Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                        }
                 else
                        {
                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                {
                                UnterBetrag[0]=Elektrik*Beschaedigung[0];
                                }
                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                {
                                UnterBetrag[0]=Elektrik*Beschaedigung[1];
                                }
                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                {
                                UnterBetrag[0]=Elektrik*Beschaedigung[2];
                                }
                        if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox3-&gt;Text==&quot; - Beschädigung - &quot;)
                                {
                                Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                                }
                        else
                                {
                                if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                        {
                                        UnterBetrag[1]=Innenausstattung*Beschaedigung[0];
                                        }
                                if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                        {
                                        UnterBetrag[1]=Innenausstattung*Beschaedigung[1];
                                        }
                                if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                        {
                                        UnterBetrag[1]=Innenausstattung*Beschaedigung[2];
                                        }
                                if (RadioButton3-&gt;Checked==true&amp;&amp;ComboBox4-&gt;Text==&quot; - Beschädigung - &quot;)
                                        {
                                        Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                                        }
                                else
                                        {
                                        if (RadioButton3-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                                {
                                                UnterBetrag[2]=Karosserie*Beschaedigung[0];
                                                }
                                        if (RadioButton3-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                                {
                                                UnterBetrag[2]=Karosserie*Beschaedigung[1];
                                                }
                                        if (RadioButton3-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                                {
                                                UnterBetrag[2]=Karosserie*Beschaedigung[2];
                                                }
                                        if (RadioButton4-&gt;Checked==true&amp;&amp;ComboBox5-&gt;Text==&quot; - Beschädigung - &quot;)
                                                {
                                                Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                                                }
                                                else
                                                        {
                                                        if (RadioButton4-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                                                {
                                                                UnterBetrag[3]=Motor*Beschaedigung[0];
                                                                }
                                                        if (RadioButton4-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                                                {
                                                                UnterBetrag[3]=Motor*Beschaedigung[1];
                                                                }
                                                        if (RadioButton4-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                                                {
                                                                UnterBetrag[3]=Motor*Beschaedigung[2];
                                                                }
                                                        if (RadioButton5-&gt;Checked==true&amp;&amp;ComboBox6-&gt;Text==&quot; - Beschädigung - &quot;)
                                                                {
                                                                Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                                                                }
                                                        else
                                                                {
                                                                if (RadioButton5-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                                                        {
                                                                        UnterBetrag[4]=Reifen*Beschaedigung[0];
                                                                        }
                                                                if (RadioButton5-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                                                        {
                                                                        UnterBetrag[4]=Reifen*Beschaedigung[1];
                                                                        }
                                                                if (RadioButton5-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                                                        {
                                                                        UnterBetrag[4]=Reifen*Beschaedigung[2];
                                                                        }
                                                                ubetrag[0]=&quot;Elektrik                   &quot;+FloatToStrF(UnterBetrag[0], ffFixed, 6, 2)+&quot; €\n&quot;;
                                                                ubetrag[1]=&quot;Innenausstattung  &quot;+FloatToStrF(UnterBetrag[1], ffFixed, 6, 2)+&quot; €\n&quot;;
                                                                ubetrag[2]=&quot;Karosserie              &quot;+FloatToStrF(UnterBetrag[2], ffFixed, 6, 2)+&quot; €\n&quot;;
                                                                ubetrag[3]=&quot;Motor                     &quot;+FloatToStrF(UnterBetrag[3], ffFixed, 6, 2)+&quot; €\n&quot;;
                                                                ubetrag[4]=&quot;Reifen                    &quot;+FloatToStrF(UnterBetrag[4], ffFixed, 6, 2)+&quot; €\n&quot;;
                                                                Gesamtbetrag=UnterBetrag[0]+UnterBetrag[1]+UnterBetrag[2]+UnterBetrag[3]+UnterBetrag[4];
                                                                gbetrag=&quot;Gesamt                  &quot;+FloatToStrF(Gesamtbetrag, ffFixed, 6, 2)+&quot; €&quot;;
                                                                gesamtrechnung=ubetrag[0]+ubetrag[1]+ubetrag[2]+ubetrag[3]+ubetrag[4]+&quot;----------------------------------\n&quot;+gbetrag;
                                                                Application-&gt;MessageBox(gesamtrechnung.c_str(), &quot;Rechnung&quot;, MB_OK | MB_ICONINFORMATION);
                                                                }
                                                }
                                        }
                                }
                        }
                 }
        }

}
//---------------------------------------------------------------------------
</code></pre>
<p>Eigentlich ist für dieses Problem ja nur der untere Teil notwendig, ich wollte aber lieber gleich alles zeigen, damit es etwas verständlicher ist. Ich hoffe das mir jemand helfen kann, ich wäre echt dankbar!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/168646/problem-mit-gesamtberechnung</link><generator>RSS for Node</generator><lastBuildDate>Thu, 13 Aug 2026 13:31:21 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/168646.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Dec 2006 00:52:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit Gesamtberechnung on Tue, 26 Dec 2006 00:52:30 GMT]]></title><description><![CDATA[<p>Hi,<br />
also ich arbeite gerade an einem Projekt für die Schule, eine Art Reparaturwerkstatt. Man gibt die Art des Fahrzeuges an (ComboBox), dann das Autoteil (CheckBox) und dann den Grad der Beschädigung(ComboBox). Wenn man am Ende auf Berechnen drückt wird eine MessageBox mit den einzelnen Angaben ausgegeben(in etwa so (wenn alle Werte auf Null währen, was aber eigentlich nicht sein könnte):<br />
Elektrik 0,00 €<br />
Innenausstattung 0,00 €<br />
Karosserie 0,00 €<br />
Motor 0,00 €<br />
Reifen 0,00 €<br />
-----------------------<br />
Gesamt 0,00 €<br />
)<br />
Mein Problem ist jetzt, dass, wenn man nicht den ersten Punkt auswählt (in dem Falle &quot;Elektrik&quot;) bei allen Werten Null ausgegeben wird. Wenn ich aber den ersten Punkt aktiviere, werden alle Werte korrekt ausgegeben. Ich weiß echt nicht, woran das liegen könnte. Hier ist mal mein Quelltext:</p>
<pre><code>//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
float UnterBetrag[5], Gesamtbetrag, Elektrik, Innenausstattung, Motor, Reifen, Karosserie, Beschaedigung[3];
AnsiString gbetrag, ubetrag[5], gesamtrechnung;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
Beschaedigung[0]=1.25;
Beschaedigung[1]=1.5;
Beschaedigung[2]=1.75;
UnterBetrag[0]=0;
UnterBetrag[1]=0;
UnterBetrag[2]=0;
UnterBetrag[3]=0;
UnterBetrag[4]=0;
Gesamtbetrag=0;
gbetrag=&quot;&quot;;
}
//---------------------------------------------------------------------------

void __fastcall TForm1::ComboBox1Change(TObject *Sender)
{
GroupBox1-&gt;Enabled=true;
RadioButton1-&gt;Checked=false;
RadioButton2-&gt;Checked=false;
RadioButton3-&gt;Checked=false;
RadioButton4-&gt;Checked=false;
RadioButton5-&gt;Checked=false;
ComboBox2-&gt;Enabled=false;
ComboBox3-&gt;Enabled=false;
ComboBox4-&gt;Enabled=false;
ComboBox5-&gt;Enabled=false;
ComboBox6-&gt;Enabled=false;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton1Click(TObject *Sender)
{
ComboBox2-&gt;Enabled=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton1DblClick(TObject *Sender)
{
RadioButton1-&gt;Checked=false;
ComboBox2-&gt;Enabled=false;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton2Click(TObject *Sender)
{
ComboBox3-&gt;Enabled=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton2DblClick(TObject *Sender)
{
RadioButton2-&gt;Checked=false;
ComboBox3-&gt;Enabled=false;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton3DblClick(TObject *Sender)
{
RadioButton3-&gt;Checked=false;
ComboBox4-&gt;Enabled=false;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton3Click(TObject *Sender)
{
ComboBox4-&gt;Enabled=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton4Click(TObject *Sender)
{
ComboBox5-&gt;Enabled=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton4DblClick(TObject *Sender)
{
RadioButton4-&gt;Checked=false;
ComboBox5-&gt;Enabled=false;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton5Click(TObject *Sender)
{
ComboBox6-&gt;Enabled=true;
}
//---------------------------------------------------------------------------
void __fastcall TForm1::RadioButton5DblClick(TObject *Sender)
{
RadioButton5-&gt;Checked=false;
ComboBox6-&gt;Enabled=false;        
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
switch(Application-&gt;MessageBox(&quot;Wollen Sie das Programm wirklich beenden?&quot;, &quot;Beenden&quot;, MB_YESNO | MB_ICONQUESTION))
        {
        case IDYES:Close();
        }
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
if (GroupBox1-&gt;Enabled!=true)
        {
        Application-&gt;MessageBox(&quot;Geben Sie bitte den Autotyp an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
        }
else
        {
        if (ComboBox1-&gt;Text==&quot;Kombi&quot;)
                {
                Elektrik=300;
                Innenausstattung=200;
                Motor=400;
                Reifen=50;
                Karosserie=250;
                }
        if (ComboBox1-&gt;Text==&quot;Geländewagen&quot;)
                {
                Elektrik=300;
                Innenausstattung=200;
                Motor=400;
                Reifen=50;
                Karosserie=250;
                }
        if (ComboBox1-&gt;Text==&quot;Sportwagen&quot;)
                {
                Elektrik=300;
                Innenausstattung=200;
                Motor=400;
                Reifen=50;
                Karosserie=250;
                }
        if (ComboBox1-&gt;Text==&quot;Limousine&quot;)
                {
                Elektrik=300;
                Innenausstattung=200;
                Motor=400;
                Reifen=50;
                Karosserie=250;
                }
        if (RadioButton1-&gt;Checked==false&amp;&amp;RadioButton2-&gt;Checked==false&amp;&amp;RadioButton3-&gt;Checked==false&amp;&amp;RadioButton4-&gt;Checked==false&amp;&amp;RadioButton5-&gt;Checked==false)
                {
                Application-&gt;MessageBox(&quot;Geben Sie bitte das Autoteil an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                }
        else
                {
                if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot; - Beschädigung - &quot;)
                        {
                        Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                        }
                 else
                        {
                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                {
                                UnterBetrag[0]=Elektrik*Beschaedigung[0];
                                }
                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                {
                                UnterBetrag[0]=Elektrik*Beschaedigung[1];
                                }
                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                {
                                UnterBetrag[0]=Elektrik*Beschaedigung[2];
                                }
                        if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox3-&gt;Text==&quot; - Beschädigung - &quot;)
                                {
                                Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                                }
                        else
                                {
                                if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                        {
                                        UnterBetrag[1]=Innenausstattung*Beschaedigung[0];
                                        }
                                if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                        {
                                        UnterBetrag[1]=Innenausstattung*Beschaedigung[1];
                                        }
                                if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                        {
                                        UnterBetrag[1]=Innenausstattung*Beschaedigung[2];
                                        }
                                if (RadioButton3-&gt;Checked==true&amp;&amp;ComboBox4-&gt;Text==&quot; - Beschädigung - &quot;)
                                        {
                                        Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                                        }
                                else
                                        {
                                        if (RadioButton3-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                                {
                                                UnterBetrag[2]=Karosserie*Beschaedigung[0];
                                                }
                                        if (RadioButton3-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                                {
                                                UnterBetrag[2]=Karosserie*Beschaedigung[1];
                                                }
                                        if (RadioButton3-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                                {
                                                UnterBetrag[2]=Karosserie*Beschaedigung[2];
                                                }
                                        if (RadioButton4-&gt;Checked==true&amp;&amp;ComboBox5-&gt;Text==&quot; - Beschädigung - &quot;)
                                                {
                                                Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                                                }
                                                else
                                                        {
                                                        if (RadioButton4-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                                                {
                                                                UnterBetrag[3]=Motor*Beschaedigung[0];
                                                                }
                                                        if (RadioButton4-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                                                {
                                                                UnterBetrag[3]=Motor*Beschaedigung[1];
                                                                }
                                                        if (RadioButton4-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                                                {
                                                                UnterBetrag[3]=Motor*Beschaedigung[2];
                                                                }
                                                        if (RadioButton5-&gt;Checked==true&amp;&amp;ComboBox6-&gt;Text==&quot; - Beschädigung - &quot;)
                                                                {
                                                                Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                                                                }
                                                        else
                                                                {
                                                                if (RadioButton5-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                                                        {
                                                                        UnterBetrag[4]=Reifen*Beschaedigung[0];
                                                                        }
                                                                if (RadioButton5-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                                                        {
                                                                        UnterBetrag[4]=Reifen*Beschaedigung[1];
                                                                        }
                                                                if (RadioButton5-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                                                        {
                                                                        UnterBetrag[4]=Reifen*Beschaedigung[2];
                                                                        }
                                                                ubetrag[0]=&quot;Elektrik                   &quot;+FloatToStrF(UnterBetrag[0], ffFixed, 6, 2)+&quot; €\n&quot;;
                                                                ubetrag[1]=&quot;Innenausstattung  &quot;+FloatToStrF(UnterBetrag[1], ffFixed, 6, 2)+&quot; €\n&quot;;
                                                                ubetrag[2]=&quot;Karosserie              &quot;+FloatToStrF(UnterBetrag[2], ffFixed, 6, 2)+&quot; €\n&quot;;
                                                                ubetrag[3]=&quot;Motor                     &quot;+FloatToStrF(UnterBetrag[3], ffFixed, 6, 2)+&quot; €\n&quot;;
                                                                ubetrag[4]=&quot;Reifen                    &quot;+FloatToStrF(UnterBetrag[4], ffFixed, 6, 2)+&quot; €\n&quot;;
                                                                Gesamtbetrag=UnterBetrag[0]+UnterBetrag[1]+UnterBetrag[2]+UnterBetrag[3]+UnterBetrag[4];
                                                                gbetrag=&quot;Gesamt                  &quot;+FloatToStrF(Gesamtbetrag, ffFixed, 6, 2)+&quot; €&quot;;
                                                                gesamtrechnung=ubetrag[0]+ubetrag[1]+ubetrag[2]+ubetrag[3]+ubetrag[4]+&quot;----------------------------------\n&quot;+gbetrag;
                                                                Application-&gt;MessageBox(gesamtrechnung.c_str(), &quot;Rechnung&quot;, MB_OK | MB_ICONINFORMATION);
                                                                }
                                                }
                                        }
                                }
                        }
                 }
        }

}
//---------------------------------------------------------------------------
</code></pre>
<p>Eigentlich ist für dieses Problem ja nur der untere Teil notwendig, ich wollte aber lieber gleich alles zeigen, damit es etwas verständlicher ist. Ich hoffe das mir jemand helfen kann, ich wäre echt dankbar!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1197871</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1197871</guid><dc:creator><![CDATA[SolidSnake]]></dc:creator><pubDate>Tue, 26 Dec 2006 00:52:30 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Gesamtberechnung on Tue, 26 Dec 2006 08:23:16 GMT]]></title><description><![CDATA[<p>Hallo SolidSnake<br />
meiner Meinung nach ist das Problem , das du die Bedingungen<br />
alle so kompliziert verschachtelst.<br />
Oder ist das vielleicht Teil der Schulaufgabe ?</p>
<pre><code class="language-cpp">if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot; - Beschädigung - &quot;) 
                        { 
                        Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION); 
                        return;
                        } 
                 else 
                        { 
                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;) 
                               { UnterBetrag[0]=Elektrik*Beschaedigung[0]; };

                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)                                  
                                {UnterBetrag[0]=Elektrik*Beschaedigung[1]; };

                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)                                  
                                {UnterBetrag[0]=Elektrik*Beschaedigung[2]; };

                        }; // ende else1      

                   if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox3-&gt;Text==&quot; - Beschädigung - &quot;) 
                           { 
                           Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION); 
                           return;
                            } 
                   else 
                           { 
                           if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;) 
                                   {UnterBetrag[1]=Innenausstattung*Beschaedigung[0];  }; 

                           if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;) 
                                   { UnterBetrag[1]=Innenausstattung*Beschaedigung[1];  } ;

                            if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;) 
                                   { UnterBetrag[1]=Innenausstattung*Beschaedigung[2]; }; 
                         }; // ende else2
</code></pre>
<p>ich denke so unverschachtelt erfüllen sie auch ihren Zweck.<br />
Ist aber nur ein Vorschlag.</p>
<p>Viel Glück.<br />
MfG Schlumpi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1197898</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1197898</guid><dc:creator><![CDATA[Schlumpi]]></dc:creator><pubDate>Tue, 26 Dec 2006 08:23:16 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Gesamtberechnung on Tue, 26 Dec 2006 12:40:34 GMT]]></title><description><![CDATA[<p>Wäre es nicht einfacher die ComboBox über &quot;ComboBox-&gt;ItemIndex&quot; anzusprechen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1197966</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1197966</guid><dc:creator><![CDATA[der_andi]]></dc:creator><pubDate>Tue, 26 Dec 2006 12:40:34 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Gesamtberechnung on Tue, 26 Dec 2006 14:37:16 GMT]]></title><description><![CDATA[<p>Hi Schlumpi und der_andi!<br />
Danke für eure Antworten.</p>
<p>Schlumpi schrieb:</p>
<blockquote>
<p>Hallo SolidSnake<br />
meiner Meinung nach ist das Problem , das du die Bedingungen<br />
alle so kompliziert verschachtelst.<br />
Oder ist das vielleicht Teil der Schulaufgabe ?</p>
<pre><code class="language-cpp">if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot; - Beschädigung - &quot;) 
                        { 
                        Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION); 
                        return;
                        } 
                 else 
                        { 
                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;) 
                               { UnterBetrag[0]=Elektrik*Beschaedigung[0]; };
                                 
                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)                                  
                                {UnterBetrag[0]=Elektrik*Beschaedigung[1]; };
                                
                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)                                  
                                {UnterBetrag[0]=Elektrik*Beschaedigung[2]; };
                                 

                        }; // ende else1      

            

                   if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox3-&gt;Text==&quot; - Beschädigung - &quot;) 
                           { 
                           Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION); 
                           return;
                            } 
                   else 
                           { 
                           if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;) 
                                   {UnterBetrag[1]=Innenausstattung*Beschaedigung[0];  }; 

                           if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;) 
                                   { UnterBetrag[1]=Innenausstattung*Beschaedigung[1];  } ;

                            if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;) 
                                   { UnterBetrag[1]=Innenausstattung*Beschaedigung[2]; }; 
                         }; // ende else2
</code></pre>
<p>ich denke so unverschachtelt erfüllen sie auch ihren Zweck.<br />
Ist aber nur ein Vorschlag.</p>
<p>Viel Glück.<br />
MfG Schlumpi</p>
</blockquote>
<p>Okay, hab das jetzt so ungefähr geändert, also ich habe die einzelnen Else schleifen voneinander getrennt. Aber der Fehler kommt immer noch.</p>
<p>der_andi schrieb:</p>
<blockquote>
<p>Wäre es nicht einfacher die ComboBox über &quot;ComboBox-&gt;ItemIndex&quot; anzusprechen?</p>
</blockquote>
<p>Wahrscheinlich schon. Aber da ich das erste Mal mit einer ComboBox gearbeitet habe und keine Ahnung hatte wie sie funktionierte, habe ich ausprobiert und so hat es dann geklappt. Ich wusste nicht, wie ich es anders machen konnte. Wenn ich noch Zeit finde werde ich das aber umändern. Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1198021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1198021</guid><dc:creator><![CDATA[SolidSnake]]></dc:creator><pubDate>Tue, 26 Dec 2006 14:37:16 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Gesamtberechnung on Tue, 26 Dec 2006 17:25:24 GMT]]></title><description><![CDATA[<p>Hallo SolidSnake</p>
<blockquote>
<p>Okay, hab das jetzt so ungefähr geändert, also ich habe die einzelnen Else schleifen voneinander getrennt. Aber der Fehler kommt immer noch.</p>
</blockquote>
<p>Dann poste den veränderten Teil bitte nochmal.</p>
<p>MfG Schlumpi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1198101</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1198101</guid><dc:creator><![CDATA[Schlumpi]]></dc:creator><pubDate>Tue, 26 Dec 2006 17:25:24 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Gesamtberechnung on Tue, 26 Dec 2006 17:40:20 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
UnterBetrag[0]=0;
UnterBetrag[1]=0;
UnterBetrag[2]=0;
UnterBetrag[3]=0;
UnterBetrag[4]=0;
Gesamtbetrag=0;
if (GroupBox1-&gt;Enabled!=true)
        {
        Application-&gt;MessageBox(&quot;Geben Sie bitte den Autotyp an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
        return;
        }
else
        {
        if (ComboBox1-&gt;Text==&quot;Kombi&quot;)
                {
                Elektrik=300;
                Innenausstattung=200;
                Motor=400;
                Reifen=50;
                Karosserie=250;
                }
        if (ComboBox1-&gt;Text==&quot;Geländewagen&quot;)
                {
                Elektrik=300;
                Innenausstattung=200;
                Motor=400;
                Reifen=50;
                Karosserie=250;
                }
        if (ComboBox1-&gt;Text==&quot;Sportwagen&quot;)
                {
                Elektrik=300;
                Innenausstattung=200;
                Motor=400;
                Reifen=50;
                Karosserie=250;
                }
        if (ComboBox1-&gt;Text==&quot;Limousine&quot;)
                {
                Elektrik=300;
                Innenausstattung=200;
                Motor=400;
                Reifen=50;
                Karosserie=250;
                }
        if (RadioButton1-&gt;Checked==false&amp;&amp;RadioButton2-&gt;Checked==false&amp;&amp;RadioButton3-&gt;Checked==false&amp;&amp;RadioButton4-&gt;Checked==false&amp;&amp;RadioButton5-&gt;Checked==false)
                {
                Application-&gt;MessageBox(&quot;Geben Sie bitte das Autoteil an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                return;
                }
        else
                {
                if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot; - Beschädigung - &quot;)
                        {
                        Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                        return;
                        }
                 else
                        {
                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                {
                                UnterBetrag[0]=Elektrik*Beschaedigung[0];
                                };
                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                {
                                UnterBetrag[0]=Elektrik*Beschaedigung[1];
                                };
                        if (RadioButton1-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                {
                                UnterBetrag[0]=Elektrik*Beschaedigung[2];
                                };
                        };

                 if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox3-&gt;Text==&quot; - Beschädigung - &quot;)
                        {
                        Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                        return;
                        }
                 else
                        {
                        if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                {
                                UnterBetrag[1]=Innenausstattung*Beschaedigung[0];
                                };
                        if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                {
                                UnterBetrag[1]=Innenausstattung*Beschaedigung[1];
                                };
                        if (RadioButton2-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                {
                                UnterBetrag[1]=Innenausstattung*Beschaedigung[2];
                                };
                        };

                 if (RadioButton3-&gt;Checked==true&amp;&amp;ComboBox4-&gt;Text==&quot; - Beschädigung - &quot;)
                        {
                        Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                        return;
                        }
                 else
                        {
                        if (RadioButton3-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                {
                                UnterBetrag[2]=Karosserie*Beschaedigung[0];
                                };
                        if (RadioButton3-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                {
                                UnterBetrag[2]=Karosserie*Beschaedigung[1];
                                };
                        if (RadioButton3-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                {
                                UnterBetrag[2]=Karosserie*Beschaedigung[2];
                                };
                        };

                 if (RadioButton4-&gt;Checked==true&amp;&amp;ComboBox5-&gt;Text==&quot; - Beschädigung - &quot;)
                        {
                        Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                        return;
                        }
                 else
                        {
                        if (RadioButton4-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                {
                                UnterBetrag[3]=Motor*Beschaedigung[0];
                                };
                        if (RadioButton4-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                {
                                UnterBetrag[3]=Motor*Beschaedigung[1];
                                };
                        if (RadioButton4-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                {
                                UnterBetrag[3]=Motor*Beschaedigung[2];
                                };
                        };

                 if (RadioButton5-&gt;Checked==true&amp;&amp;ComboBox6-&gt;Text==&quot; - Beschädigung - &quot;)
                        {
                        Application-&gt;MessageBox(&quot;Geben Sie bitte den Grad der Beschädigung an!&quot;, &quot;Fehler&quot;, MB_OK | MB_ICONEXCLAMATION);
                        return;
                        }
                 else
                        {
                        if (RadioButton5-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Leicht&quot;)
                                {
                                UnterBetrag[4]=Reifen*Beschaedigung[0];
                                };
                        if (RadioButton5-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Mittel&quot;)
                                {
                                UnterBetrag[4]=Reifen*Beschaedigung[1];
                                };
                        if (RadioButton5-&gt;Checked==true&amp;&amp;ComboBox2-&gt;Text==&quot;Schwer&quot;)
                                {
                                UnterBetrag[4]=Reifen*Beschaedigung[2];
                                };
                        };

                                ubetrag[0]=&quot;Elektrik                   &quot;+FloatToStrF(UnterBetrag[0], ffFixed, 6, 2)+&quot; €\n&quot;;
                                ubetrag[1]=&quot;Innenausstattung  &quot;+FloatToStrF(UnterBetrag[1], ffFixed, 6, 2)+&quot; €\n&quot;;
                                ubetrag[2]=&quot;Karosserie              &quot;+FloatToStrF(UnterBetrag[2], ffFixed, 6, 2)+&quot; €\n&quot;;
                                ubetrag[3]=&quot;Motor                     &quot;+FloatToStrF(UnterBetrag[3], ffFixed, 6, 2)+&quot; €\n&quot;;
                                ubetrag[4]=&quot;Reifen                    &quot;+FloatToStrF(UnterBetrag[4], ffFixed, 6, 2)+&quot; €\n&quot;;
                                Gesamtbetrag=UnterBetrag[0]+UnterBetrag[1]+UnterBetrag[2]+UnterBetrag[3]+UnterBetrag[4];
                                gbetrag=&quot;Gesamt                  &quot;+FloatToStrF(Gesamtbetrag, ffFixed, 6, 2)+&quot; €&quot;;
                                gesamtrechnung=ubetrag[0]+ubetrag[1]+ubetrag[2]+ubetrag[3]+ubetrag[4]+&quot;----------------------------------\n&quot;+gbetrag;
                                Application-&gt;MessageBox(gesamtrechnung.c_str(), &quot;Rechnung&quot;, MB_OK | MB_ICONINFORMATION);
                                                                //ShowMessage(&quot;Elektrik                   &quot;+ubetrag[0]+&quot; €\n&quot;+&quot;Innenausstattung  &quot;+ubetrag[1]+&quot; €\n&quot;+&quot;Karosserie              &quot;+ubetrag[2]+&quot; €\n&quot;+&quot;Motor                     &quot;+ubetrag[3]+&quot; €\n&quot;+&quot;Reifen                    &quot;+ubetrag[4]+&quot; €\n&quot;+&quot;-----------------------------------\n&quot;+&quot;Gesamt                    &quot;+ gbetrag+&quot; €&quot;)
                 };
        };

}
</code></pre>
<p>Hab die Else-Bedingungen geschlossen, den Schreibstil aber beibehalten. Wir haben das so in der Schule gelernt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1198108</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1198108</guid><dc:creator><![CDATA[SolidSnake]]></dc:creator><pubDate>Tue, 26 Dec 2006 17:40:20 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Gesamtberechnung on Tue, 26 Dec 2006 19:59:50 GMT]]></title><description><![CDATA[<p>dein Fehler liegt darin, dass du immer nur ComboBox2 abfragst und nicht die zum RadioButton gehörende ComboBox</p>
<p>ich empfehle dir dringend die Benutzung des <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39301.html" rel="nofollow">Debuggers</a> zu lernen, da das dein Problem recht schnell gelöst hätte</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1198198</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1198198</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Tue, 26 Dec 2006 19:59:50 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Gesamtberechnung on Tue, 26 Dec 2006 20:19:17 GMT]]></title><description><![CDATA[<p>Vielen Dank, daran lag's natürlich. Jetzt funzt es. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Ich hätte jetzt noch eine Frage, gibt es eine Möglichkeit, Text am Rand zu orientieren (weiß jetzt das genaue Wort nicht). Also ich möchte, dass eine Art Rechnung in einer MessageBox ausgegeben wird, in der alle Werte drinstehen. Nun sind aber die einzelnen Eurobeträge an unterschiedlichen Stellen, also nicht direkt untereinander. Ich habe da etwas manuell rum getrickst, so dass es einigermaßen so aussieht, aber nur, wenn bei allen Werten Null ist. Sobald ein Wert nicht Null ist, sind die Kommas untereinander verschoben. Gibt es eine Möglichkeit das zu verändern?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1198202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1198202</guid><dc:creator><![CDATA[SolidSnake]]></dc:creator><pubDate>Tue, 26 Dec 2006 20:19:17 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Gesamtberechnung on Tue, 26 Dec 2006 21:02:50 GMT]]></title><description><![CDATA[<p>du meinst wahrscheinlich sowas wie Blocksatz im Word und das ist so in einer MessageBox eigentlich nicht möglich</p>
<p>muß es denn eine MessageBox sein? du könntest auch ein neues Formular machen und mit Hilfe von Labels die Werte ausgeben und dort auch die Linien mit einzeichnen, dann das Formular einfach mit ShowModal aufrufen und schon hast du eine ordentliche, übersichtlich Anzeige der Werte</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1198217</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1198217</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Tue, 26 Dec 2006 21:02:50 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Gesamtberechnung on Wed, 27 Dec 2006 17:58:56 GMT]]></title><description><![CDATA[<p>Danke, das war eine gute Idee. Jetzt funktioniert es so wie es soll.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1198639</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1198639</guid><dc:creator><![CDATA[SolidSnake]]></dc:creator><pubDate>Wed, 27 Dec 2006 17:58:56 GMT</pubDate></item></channel></rss>