Autor Beitrag
Xearox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 260
Erhaltene Danke: 3



BeitragVerfasst: Fr 22.01.10 15:56 
[DCC Fehler] Unit1.pas(331): E2015 Operator ist auf diesen Operandentyp nicht anwendbar
weiß jemand wieso das nicht möglich ist, es handelt sich um die Fett gedruckten zeilen.
Das sind RadioButton in einer GroupBox.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
//------------------------Metall Minen Bonus------------------------------------
  if RMetMine=true  then
  begin
    RessProd:=Trunc(RessProd*MBonus)*Trunc((Stufe+1)*Power(1.5,Stufe+1))+RessProd;
    RessProdStr:=floattostr(RessProd);
    MProd.Text:=MProd.Text+RessProdStr+#13#10;
  end;
//------------------------Kristall Minen Bonus----------------------------------
  if RKrisMine=true then
  begin
    RessProd:=Trunc(RessProd*KBonus)*Trunc((Stufe+1)*Power(1.5,Stufe+1))+RessProd;
    RessProdStr:=floattostr(RessProd);
    MProd.Text:=MProd.Text+RessProdStr+#13#10;
  end;
//------------------------Antimaterie Minen Bonus-------------------------------
  if RAntiFabrik=true then
  begin
    RessProd:=Trunc(RessProd*ABonus)*Trunc((Stufe+1)*Power(1.5,Stufe+1))+RessProd;
    RessProdStr:=floattostr(RessProd);
    MProd.Text:=MProd.Text+RessProdStr+#13#10;
  end;
//------------------------------------------------------------------------------


Moderiert von user profile iconGausi: B- durch Highlight-Tags ersetzt
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8535
Erhaltene Danke: 473

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 22.01.10 15:59 
Wenn das Radiobuttons sind, muss es dann nicht besser if RMetMine.Checked then heißen? ;-)

_________________
We are, we were and will not be.
Xearox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 260
Erhaltene Danke: 3



BeitragVerfasst: Fr 22.01.10 16:03 
ähm...oops...wieso bin ich da nicht selber drauf gekommen, gleich mal probieren... :evil:

[Edit]Ja es lag daran...man man man...man merkt es, das ich seit über 24h am programmieren bin...
Konzentration lässt nach...muss wohl mehr Kaffee und Energy Drinks trinken und bissl Dextro Energy essen. LOL
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Fr 22.01.10 17:36 
Hi :)

Und den Vergleich auf true lässt du auch am besten weg(wie Gausi effektiv schon geschrieben hat) ;)
Vergleiche auf true/false.

mfG,

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
Xearox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 260
Erhaltene Danke: 3



BeitragVerfasst: Sa 23.01.10 17:57 
okay weiß ich bescheid.