Autor Beitrag
DorJo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 139



BeitragVerfasst: Mi 09.07.08 01:21 
Hy @ all,
ich habe ein Problem! Ich möchte gern eine Zelle in einem Stringgrid färben. Ja ich weiß das das alles schon tausendmal beschrieben wurde, aber da alle bisherigen Antworten mir nicht weiterhelfen konnten, sah ich mich gezwungen, einen neuen Thread zu eröffnen! Es geht um einen Kalender. Die Prozedur fill_kalender sieht so aus:
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:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
...
Getdir(0,dir);
kal_ini:=dir+'/calender.ini';
  //Öffnen einer INI-Datei, existiert sie nicht, wird sie neu erzeugt
  kalenderini:=TIniFile.Create(kal_ini);

for i:=1 to kalender.rowcount do
begin
  kalender.Rows[i].clear;
end;
if monat.text='Januar' then anz_tage:=31;
if ((monat.text='Februar') and (strtoint(jahr.Caption) mod 4 = 0)) then anz_tage:=29 else
if ((monat.text='Februar') and (strtoint(jahr.Caption) mod 4 <> 0)) then anz_tage:=28;
if monat.text='März' then anz_tage:=31;
if monat.text='April' then anz_tage:=30;
if monat.text='Mai' then anz_tage:=31;
if monat.text='Juni' then anz_tage:=30;
if monat.text='Juli' then anz_tage:=31;
if monat.text='August' then anz_tage:=30;
if monat.text='September' then anz_tage:=30;
if monat.text='Oktober' then anz_tage:=31;
if monat.text='November' then anz_tage:=30;
if monat.text='Dezember' then anz_tage:=31;

if monat.text='Januar' then str_monat:='1';
if monat.text='Februar' then str_monat:='2';
if monat.text='März' then str_monat:='3';
if monat.text='April' then str_monat:='4';
if monat.text='Mai' then str_monat:='5';
if monat.text='Juni' then str_monat:='6';
if monat.text='Juli' then str_monat:='7';
if monat.text='August' then str_monat:='8';
if monat.text='September' then str_monat:='9';
if monat.text='Oktober' then str_monat:='10';
if monat.text='November' then str_monat:='11';
if monat.text='Dezember' then str_monat:='12';
woche:=1;
anfang:=true;
for i:=1 to anz_tage do
begin
  if i<10 then datum_neu:='0'+inttostr(i)+'.'+str_monat+'.'+jahr.Caption
  else datum_neu:=inttostr(i)+'.'+str_monat+'.'+jahr.Caption;
  case (DayOfWeek(StrToDate(datum_neu))) of
    1: item:=6;
    2: item:=0;
    3: item:=1;
    4: item:=2;
    5: item:=3;
    6: item:=4;
    7: item:=5;
  end;
  if anfang=true then
  begin
    for a:=0 to item-1 do
    begin
      kalender.Rows[woche].Add('');
    end;
    anfang:=false;
  end;
  if kalenderini.SectionExists(datum_neu)=true then
  begin
    Kalender_X:=item;
    Kalender_Y:=woche;
    kalender.repaint;
  end else
  begin
    Kalender_X:=-1;
    Kalender_Y:=-1;
  end;
  kalender.Rows[woche].Add(inttostr(i));

  if item=6 then woche:=woche+1;
end;
   //
kalenderini.Free;
end;


in der kalenderini stehen die vorgemerkten Daten drin. Ihr merkt bestimmt sofort, dass zuerst das Stringgrid gezeichnet wird und anschließend mit den Zahlen gefüllt wird. Kalender_X und Kalender_Y sind globale Variablen, welche dann bei dem DrawCell Prozedere benötigt werden:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
    If (aCol = Kalender_X) And (aRow = Kalender_Y) Then 
    Begin
      Canvas.Brush.Color := clRed;
      Canvas.FillRect(Rect);
    End;

...
Aber es passiert nichts :(

Kann mir jemand weiterhelfen?

Danke schonmal im Vorraus!

MfG
Dor Jo

Moderiert von user profile iconNarses: Tiepvehler im Titel korrigiert.
Jerk
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 251

Vista Ultimate, Ubuntu
Turbo Delphi 2006
BeitragVerfasst: Mi 09.07.08 01:57 
Ich denke der Fehler bei dir leigt Daran das du ihm nicht sagst welches Rect er färben soll

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
procedure TForm1.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer;
  Rect: TRect; State: TGridDrawState);
  var s : string;
begin
 with Sender As TStringGrid do
 If (aCol = Kalender_X) And (aRow = Kalender_Y) Then 
 begin
  Rect := CellRect(Kalender_X,Kalender_y);   // <- Rect definieren
  s := Cells[Kalender_X, Kalender_Y];        // Kopiert Text aus Zelle
  Canvas.Brush.Color := clgreen;
  Canvas.FillRect(Rect);
  DrawText(Canvas.Handle, PChar(s), Length(s), Rect, DT_LEFT); // Fügt Text wieder ein, da "übermalt"
 end;
end;



Das ist die Variante um genau eine Zelle zu Färben.
Für mehrere musst du das ganze mit ner Schleife versehen und dann halt deine Bedingung setzen sowas wie

ausblenden Delphi-Quelltext
1:
2:
3:
for i := 1 to 100 do
If (aCol = Kalender_X[i]) And (aRow = Kalender_Y[i]) Then 
...
DorJo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 139



BeitragVerfasst: Mi 09.07.08 02:53 
Hmm. Also eigentlich müsste es vollkommen egal sein! Weil ja das Ereigniss DrawCell bei jeder einzelnen Zelle aufgerufen wird und dort ja dann überprüft wird ob es die richtige Zelle ist oder nicht!

Was mich viel mehr verwundert ist, als ich es vorhin debuggt hab, stellte ich fest, das er bei diesem Repaint überhaupt nicht mehr in das DrawCell Ereigniss geht!

Eigenartig!
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 09.07.08 09:21 
Setze mal DefaultDrawing deines StringGrids auf False.
Jerk
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 251

Vista Ultimate, Ubuntu
Turbo Delphi 2006
BeitragVerfasst: Mi 09.07.08 11:44 
Aufjedenfall wird nichts gemalt wenn das Rect nicht definiert ist!
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Mi 09.07.08 12:21 
Bei solchen Fragen geht man besser hin und reduziert das Problem auf das nötigste :

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
procedure TForm1.sg1DrawCell(Sender: TObject; ACol, ARow: Integer;
  Rect: TRect; State: TGridDrawState);
begin
 with Sender As TStringGrid do
 If (aCol = 2) And (aRow = 2) Then begin
  Canvas.Brush.Color := clgreen;
//  Canvas.FillRect(Rect);    // <-------------
  DrawText(Canvas.Handle, PChar('AAAA'), Length('AAAA'), Rect, DT_LEFT); // Fügt Text wieder ein, da "übermalt"
 end;
end;


Das färbt die Zelle 2,2 grün. Alles andere ist überflüssig. Weil das FillRect momentan auskommentiert ist, kann man sogar nur den Bereich der Telle färben, wo 'AAAA' dargestellt wird. Kommentar weg : komplette Zelle wird grün.

_________________
Gruß
Hansa
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 09.07.08 12:57 
user profile iconJerk hat folgendes geschrieben:
Aufjedenfall wird nichts gemalt wenn das Rect nicht definiert ist!

Im DrawCell ist das Rect automatisch eingestellt mit den Daten der Zelle.
DorJo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 139



BeitragVerfasst: Mi 09.07.08 13:30 
Also ich glaub das Problem ist ein ganz anderes! Wie ich sagte wird beim Debuggen nach dem "Kalender.repaint" überhaupt nichts aufgerufen!

Und wenn ich DefaultDrawing:=false setze, schreibt er gar nichts mehr in den String Grid :(
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Mi 09.07.08 13:36 
Steht in der DFM, also im OI die DrawCell-Prozedur überhaupt drin ? Falls ja, dann stimmt die Abfrage der Zelle nicht. Langsam wirds mal Zeit einen Breakpoint zu setzen. 8)

_________________
Gruß
Hansa
DorJo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 139



BeitragVerfasst: Mi 09.07.08 13:38 
@ hansa: Hab ich ja!!! Ich hab kurz vor dem Aufruf von Kalender.repaint einen Breakpoint gesetzt! Deswegen konnt ich ja überhaupt feststellen das er gar nicht reinspringt :(
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 09.07.08 13:40 
Hansa meint, dass du im OI erstmal prüfen sollst, ob die Routine überhaupt dem StringGrid zugeordnet ist.

user profile iconDorJo hat folgendes geschrieben:
Und wenn ich DefaultDrawing:=false setze, schreibt er gar nichts mehr in den String Grid :(
Logisch. Du willst das Zeichnen ja auch selbst übernehmen. Deswegen muss es ja auf False gesetzt werden.
DorJo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 139



BeitragVerfasst: Mi 09.07.08 13:41 
was für ne routine? die DrawCell? Na logisch ist die dem Stringgrid zugeordnet ;)
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Mi 09.07.08 13:45 
Bleibt der Debugger auch wirklich hier stehen ?

user profile iconDorJo hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
    If (aCol = Kalender_X) And (aRow = Kalender_Y) Then 
    Begin
      Canvas.Brush.Color := clRed;    <-------- hier ??????????????
      Canvas.FillRect(Rect);
    End;



Glaubs kaum. :lol:

@gelber Kasten : wie gesagt, lasse am besten alles überflüssige weg. Das gilt auch für DefaultDrawing, Repaint etc. Bei dem Beispiel oben habe ich ein Stringgrid genommen und lediglich die paar Zeilen im OnDrawCell eingefügt. Und das geht !

_________________
Gruß
Hansa
DorJo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 139



BeitragVerfasst: Mi 09.07.08 14:10 
@ hansa: NEIN! Genau das ist ja mein Problem! Er ruft die Prozedur bei dem Kalender.repaint gar nicht auf! Da kann er da auch nicht stehen bleibe :(
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 09.07.08 14:41 
Hast du den BP wirklich ganz am Anfang vom DrawCell stehen oder erst nach der Bedingungsabfrage?
Vielleicht ist einfach deine Bedingung nicht erfüllt und du hast einen logischen Fehler.
DorJo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 139



BeitragVerfasst: Mi 09.07.08 14:45 
ich fühl mich grad missverstanden und versuches es deshalb noch einmal zu erklären!
Also
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
if kalenderini.SectionExists(datum_neu)=true then //Bedingung ist richtig erfüllt
  begin
    Kalender_X:=item;
    Kalender_Y:=woche;
    kalender.repaint;             //Der Debugger führt diesen Befehl aus ohne das CellDraw Ereignis aufzurufen!
  end;



Ich hoffe mal das es jetzt verständlicher war!

MfG

DorJo
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 09.07.08 15:00 
Und ich meinte das hier:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
    If (aCol = Kalender_X) And (aRow = Kalender_Y) Then 
    Begin
      Canvas.Brush.Color := clRed;
      Canvas.FillRect(Rect);
    End;

Wenn deine Eingangsbedingung (if..then) nicht erfüllt ist, dann passiert auch nichts.

Ich mache das in einem uralten Programm mal so gelöst:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
procedure TfrmMain.grdKalenderDrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState);
begin
// Ein bisschen angepasst, weil da eigentlich noch viel mehr gemacht wird. ;)
// Aber das Prinzip sollte klar werden.
  if (ACol > 0) and (ARow > 0) then
  begin
    if AnzahlPersonen > 0 then
    begin
      grdKalender.Canvas.FillRect(Rect);
      grdKalender.Canvas.TextRect(Rect, Rect.Left + 1, Rect.Top + 1, 'Ein Text');

      // Falls die Zelle selektiert ist:
      if (grdKalender.Selection.Left <= ACol) and (grdKalender.Selection.Right >= ACol) and
         (grdKalender.Selection.Top <= ARow) and (grdKalender.Selection.Bottom >= ARow) then
      begin
        grdKalender.Canvas.Brush.Color := TColor(Integer(grdKalender.Canvas.Brush.Color) xor $00FFFFFF);
        grdKalender.Canvas.FrameRect(Rect);
      end;
    end;
  end;
end;

Und das funktioniert.
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Mi 09.07.08 17:33 
user profile iconDorJo hat folgendes geschrieben:
ich fühl mich grad missverstanden...

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
if kalenderini.SectionExists(datum_neu)=true then //Bedingung ist richtig erfüllt
  begin
    Kalender_X:=item;
    Kalender_Y:=woche;
    kalender.repaint;             //Der Debugger führt diesen Befehl aus ohne das CellDraw Ereignis aufzurufen!
  end;



Ich hoffe mal das es jetzt verständlicher war!


Ne, ist es nicht. Es ist Kauderwelsch. :lol: Wenn dir einer helfen soll, dann hilft nur die komplette DrawCell-Prozedur UND die DFM der Unit zu posten. In welcher Prozedur steht z.B. das hier : if kalenderini.SectionExists(datum_neu)=true then
:shock:

_________________
Gruß
Hansa
DorJo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 139



BeitragVerfasst: Mi 09.07.08 22:18 
Ok.
Jetz versuch ichs wirklich ausführlich!

Also in der Form1.Create Procedure wird folgendes gemacht:
Zuerst wird der Stringgrid "kalender" in der obersten Zeile mit den Wochentagen beschriftet:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
kalender.Cols[0].Text:='Mon';
kalender.Cols[1].Text:='Die';
kalender.Cols[2].Text:='Mit';
kalender.Cols[3].Text:='Don';
kalender.Cols[4].Text:='Fre';
kalender.Cols[5].Text:='Sam';
kalender.Cols[6].Text:='Son';

Danach hol ich mir das aktuelle Datum:
ausblenden Delphi-Quelltext
1:
datum:=(DatetoStr(Date));					

Dann extrahiere ich aus dem Datum den Tag, Monat und Jahr:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
str_tag:='';
str_monat:='';
str_jahr:='';
for i:=1 to Pos('.',datum)-1 do
begin
  str_tag:=str_tag+datum[i];
end;
for a:=i+1 to PosEx('.',datum,i+1)-1 do
begin
  str_monat:=str_monat+datum[a];
end;
for b:=a+1 to Length(datum) do
begin
  str_jahr:=str_jahr+datum[b];
end;

Anschließend weiße ich der Combobox "monat" die Monatsnamen zu:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
case strtoint(str_monat) of
  1:  monat.Text:='Januar';
  2:  monat.Text:='Februar';
  3:  monat.Text:='März';
  4:  monat.Text:='April';
  5:  monat.Text:='Mai';
  6:  monat.Text:='Juni';
  7:  monat.Text:='Juli';
  8:  monat.Text:='August';
  9:  monat.Text:='September';
  10: monat.Text:='Oktober';
  11: monat.Text:='November';
  12: monat.Text:='Dezember';
end;

Danach wird die Prozedur Form1.fill_kalender() aufgerufen:
ausblenden Delphi-Quelltext
1:
Form1.fill_kalender;					


In der Prozedur fill_kalender sieht dann so aus:
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:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
Getdir(0,dir);
kal_ini:=dir+'/calender.ini';
  //Öffnen einer INI-Datei, existiert sie nicht, wird sie neu erzeugt
  kalenderini:=TIniFile.Create(kal_ini);

for i:=1 to kalender.rowcount do
begin
  kalender.Rows[i].clear;
end;
if monat.text='Januar' then anz_tage:=31;
if ((monat.text='Februar') and (strtoint(jahr.Caption) mod 4 = 0)) then anz_tage:=29 else
if ((monat.text='Februar') and (strtoint(jahr.Caption) mod 4 <> 0)) then anz_tage:=28;
if monat.text='März' then anz_tage:=31;
if monat.text='April' then anz_tage:=30;
if monat.text='Mai' then anz_tage:=31;
if monat.text='Juni' then anz_tage:=30;
if monat.text='Juli' then anz_tage:=31;
if monat.text='August' then anz_tage:=30;
if monat.text='September' then anz_tage:=30;
if monat.text='Oktober' then anz_tage:=31;
if monat.text='November' then anz_tage:=30;
if monat.text='Dezember' then anz_tage:=31;

if monat.text='Januar' then str_monat:='1';
if monat.text='Februar' then str_monat:='2';
if monat.text='März' then str_monat:='3';
if monat.text='April' then str_monat:='4';
if monat.text='Mai' then str_monat:='5';
if monat.text='Juni' then str_monat:='6';
if monat.text='Juli' then str_monat:='7';
if monat.text='August' then str_monat:='8';
if monat.text='September' then str_monat:='9';
if monat.text='Oktober' then str_monat:='10';
if monat.text='November' then str_monat:='11';
if monat.text='Dezember' then str_monat:='12';
woche:=1;
anfang:=true;
for i:=1 to anz_tage do
begin
  if i<10 then datum_neu:='0'+inttostr(i)+'.'+str_monat+'.'+jahr.Caption
  else datum_neu:=inttostr(i)+'.'+str_monat+'.'+jahr.Caption;
  case (DayOfWeek(StrToDate(datum_neu))) of
    1: item:=6;
    2: item:=0;
    3: item:=1;
    4: item:=2;
    5: item:=3;
    6: item:=4;
    7: item:=5;
  end;
  if anfang=true then
  begin
    for a:=0 to item-1 do
    begin
      kalender.Rows[woche].Add('');
    end;
    anfang:=false;
  end;
  if kalenderini.SectionExists(datum_neu)=true then
  begin
    Kalender_X:=item;
    Kalender_Y:=woche;
    kalender.repaint;
  end else
  begin
    Kalender_X:=-1;
    Kalender_Y:=-1;
  end;
  kalender.Rows[woche].Add(inttostr(i));

  if item=6 then woche:=woche+1;
end;
   //
kalenderini.Free;
end;


So. Also wird quasi beim Befüllen des Stringgrids in der .ini Datei nachgesehen ob an diesem Datum schon etwas gespeichert ist. Beim Debuggen durchläuft er das auch alles einwandfrei (zu Testzwecken wurde die Session 02.Juli.08 angelegt) springt auch zum kalender.repaint und müsste dann egtl. folgendes ausführen, was er aber ÜBERHAUPT NICHT macht!:

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:
23:
24:
procedure TForm1.kalenderDrawCell(Sender: TObject; ACol, ARow: Integer;
  Rect: TRect; State: TGridDrawState);
Var
  s                                     : String;
Begin
  With Sender As TStringGrid Do
  Begin

    If (aCol = Kalender_X) And (aRow = Kalender_Y) Then // Wenn zu zeichnende Zelle den Koord. entspricht ...
    Begin
      s := Cells[aCol, aRow];
      Canvas.Brush.Color := clRed;
      Canvas.FillRect(Rect);
      DrawText(Canvas.Handle, PChar(s), Length(s), Rect, DT_LEFT);
    End
    Else
    Begin                                     // Wenn nicht dann in der Farbe des Stringgrid einfärben (altes Rot weg)
      s := Cells[aCol, aRow];
      Canvas.Brush.Color := Color;
      Canvas.FillRect(Rect);
      DrawText(Canvas.Handle, PChar(s), Length(s), Rect, DT_LEFT);
    End;
  End;
end;


So. uff. Kann nicht mehr :) Finger wundgetippt. Aber ich hoffe mal das es jetzt verständlich ist!

MfG

DorJo
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Mi 09.07.08 23:12 
user profile iconDorJo hat folgendes geschrieben:
for i:=1 to kalender.rowcount do
begin
kalender.Rows[i].clear;
end;


Was soll denn das ? :shock: Mich wundert langam nichts mehr. :mrgreen:

_________________
Gruß
Hansa