Autor Beitrag
robo202
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 67

win XP
Delphi 2005
BeitragVerfasst: So 27.07.08 16:03 
Hallo in dieser zeile gibt es laut delphi den fehler
[Fehler] Unit1.pas(66): E2010 Inkompatible Typen: 'string' und 'Integer'

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
Listbox1.Items.Add(ini.ReadString((edit1.Text),'Artickel','Artikel nicht da'))+
 '    ' + (edit2.Text)+ '    ' + floattostr (ini.ReadFloat((edit1.Text),'Preis',0))  +
    '    ' +
 floattostr(FF);
end;


Fehler ist laut delph hier

ausblenden Delphi-Quelltext
1:
.....  + (edit2.Text)  ......					

hinter dem '+'
robo202 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 67

win XP
Delphi 2005
BeitragVerfasst: So 27.07.08 16:08 
Danke hat sich geklärt
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: So 27.07.08 17:28 
Willst Du den Wettbewerb "Wie-schreibe-ich-unleserlichen-Code" gewinnen?

_________________
Na denn, dann. Bis dann, denn.
robo202 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 67

win XP
Delphi 2005
BeitragVerfasst: So 27.07.08 21:52 
ja gerne :D :D :D
huuuuuh
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 665
Erhaltene Danke: 19

win xp, (win vista), win 7
VS 2008 Express Edition, VS 2010 Express Edition, VS 2010 Professionell
BeitragVerfasst: So 27.07.08 22:55 
wenn es sich schon geklärt hat, dann sag doch weningstens bitte, wie du den fehler genau gelöst hast...
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Mo 28.07.08 08:49 
user profile iconhuuuuuh hat folgendes geschrieben:
wenn es sich schon geklärt hat, dann sag doch weningstens bitte, wie du den fehler genau gelöst hast...

Er wird wohl irgendwo einen Typcast vergessen haben. Allerdings habe ich jetzt auch keine Lust, dieses Ding da oben genau anzuschauen, sonst bekomme ich Todesängste.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
Stübi
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 331

Win XP, Win 2000, Win ME
D5 Ent, D7 Prof, D2005 PE, C#
BeitragVerfasst: Mo 28.07.08 09:25 
Ich weis, dass dies nicht die Frage war, aber schreibt man Artickel nicht ohne CK so ungefähr: Artikel?

Grüsse

Stübi

_________________
Neun von zehn Stimmen in meinen Kopf sagen, dass ich nicht verrückt sei. Die zehnte summt die Tetrismelodie.
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Mo 28.07.08 10:27 
user profile iconStübi hat folgendes geschrieben:
Ich weis, dass dies nicht die Frage war, aber schreibt man Artickel nicht ohne CK so ungefähr: Artikel?

"Ungefähr" ist richtig. Aber da das hier ein freies Forum ist, darfst Du sämtliche Rechtschreibfehler, die Du findest, behalten! Toll, gell? Wenn man 10 hat, kann man die mal bei ebay verticken.... :zustimm:

_________________
Na denn, dann. Bis dann, denn.
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: Mo 28.07.08 11:37 
user profile iconhuuuuuh hat folgendes geschrieben:
wenn es sich schon geklärt hat, dann sag doch weningstens bitte, wie du den fehler genau gelöst hast...


Da ist doch 'ne Klammer falsch gesetzt.
huuuuuh
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 665
Erhaltene Danke: 19

win xp, (win vista), win 7
VS 2008 Express Edition, VS 2010 Express Edition, VS 2010 Professionell
BeitragVerfasst: Mo 28.07.08 12:38 
ne die falsch gesetzte klammer steht nich da wo laut ihm der fehler sein soll...oder welche klammer meinst du?
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Mo 28.07.08 12:43 
Wenn man einige sinnlose Klammersetzungen weglässt, bekommt man nicht so ein großes Problem bei Verschachtelungen:

Listbox1.Items.Add(
ini.ReadString(edit1.Text, 'Artikel','Artikel nicht da') +
' ' +
edit2.Text +
' ' +
floattostr(ini.ReadFloat(edit1.Text,'Preis',0)) +
' ' +
floattostr(FF)
);

Habs zur besseren Übersicht mal bissl in die Länge gezogen und "formatiert"

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.