Autor Beitrag
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 26.09.06 11:35 
Zitat:
Aber was zählt die for schleife genau hoch?
bei dem sl wird ja nichts hochgezählt.
Doch i geht ja von 0 bis Anzahl -1. in sl1.Strings[i] ist dann ja die i+1.te Karte.

_________________
Markus Kinzler.
rizor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 209

WIN XP
Delphi 2005 PE, Visual C++
BeitragVerfasst: Di 26.09.06 13:31 
aso.
danke.
rizor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 209

WIN XP
Delphi 2005 PE, Visual C++
BeitragVerfasst: Di 26.09.06 13:53 
Er gibt imer noch nicht die integers (d,h,s,c) aus.
hab es so gemacht wie du es gesagt hast.
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 26.09.06 14:02 
Zeig nochmal deienn ganzen Code

_________________
Markus Kinzler.
rizor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 209

WIN XP
Delphi 2005 PE, Visual C++
BeitragVerfasst: Di 26.09.06 16:21 
ausblenden volle Höhe Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
var card,scard:TStringList;
var i,d,h,s,c:integer;
begin
  d:=0; h:=0; s:=0; c:=0;

  card:=TStringList.Create;
  scard:=TStringList.Create;
  card.Delimiter:= ' ';
  scard.Delimiter:= '.';
  card.DelimitedText := Ehand.Text;
  for i := 0 to card.count-1 do
    begin
      scard.DelimitedText := card.Strings[i];
      case scard.Strings[1][1] of
        'd': d:=d+1;
        'h': h:=h+1;
        's': s:=s+1;
        'c': c:=c+1;
      end;
    end;
  card.DelimitedText := Eboard.Text;
  for i := 0 to card.count-1 do
    begin
      scard.DelimitedText := card.Strings[i];
      case scard.Strings[1][1] of
        'd': d:=d+1;
        'h': h:=h+1;
        's': s:=s+1;
        'c': c:=c+1;
      end;
  Ldiamond.caption:='Karo '+IntToStr(d);
  Lheart.caption:='Herz '+IntToStr(h);
  Lpik.caption:='Pik '+IntToStr(s);
  Lclub.caption:='Kreuz '+IntToStr(c);
  card.free;
  scard.free;


hoffentlich findest du den fehler.
Delphi gibt zumindest keinen Syntaxfehler oder so aus.
rizor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 209

WIN XP
Delphi 2005 PE, Visual C++
BeitragVerfasst: Di 26.09.06 17:22 
Es muss ein Problem mit den Labels sein, denn wenn ich die inttostr teile wegnehme, dann gibt er trotzdem nix aus.
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 26.09.06 17:30 
Ich nur einen kleinen Fehler gefinden: Vor der Ausgabe fehlt ein end;
Aber bei mir gibt er es aus.

_________________
Markus Kinzler.
rizor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 209

WIN XP
Delphi 2005 PE, Visual C++
BeitragVerfasst: Di 26.09.06 17:33 
habe das end geändert.
war nur unter der ausgabe.
kannst du mir mal dein programm schicken?
als anhang oder so?
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Di 26.09.06 17:39 
Natürlich
Einloggen, um Attachments anzusehen!
_________________
Markus Kinzler.
rizor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 209

WIN XP
Delphi 2005 PE, Visual C++
BeitragVerfasst: Di 26.09.06 17:40 
deins geht bei mir auch. danke
jetzt muss ich nur noch meinen fehler finden. :)
rizor Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 209

WIN XP
Delphi 2005 PE, Visual C++
BeitragVerfasst: Di 26.09.06 17:49 
ich gleub mein delphi 2005 pe spinnt, denn wenn ich dein prog über delphi starten will, bringt er mir lauter fehler und dasprog stürtzt ab.
wir haben außerdem genau den gleichen code also kann es nur mein delphi sein, oder?