Autor Beitrag
foxy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 814

Ubuntu, Gentoo
C++, PHP, Java, Ruby, Perl (Eclipse)
BeitragVerfasst: Fr 24.01.03 15:04 
guden schaut euch mal die prucedure an...

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
procedure TForm1.ColorGrid(dbgIn: TDBGrid; Table1: TTable; const Rect: TRect;
  DataCol: Integer; Column: TColumn;
  State: TGridDrawState);
var  
  iValue: LongInt; 
begin
  if (DataCol > 0) then
  begin 
    iValue := Table1.FieldByName('Firma').AsInteger;
    case iValue of 
      1: dbgIn.Canvas.Brush.Color := clAqua;
      2: dbgIn.Canvas.Brush.Color := clLime; 
      3: dbgIn.Canvas.Brush.Color := clYellow; 
      4: dbgIn.Canvas.Brush.Color := clRed; 
    end; 
    dbgIn.DefaultDrawColumnCell(Rect, DataCol, Column, State);
  end; 
end;

ich bekomm bei iVelue eine "ungülige zeigerOperation"???

ich übergebe die daten so

ausblenden Quelltext
1:
ColorGrid(DBGrid1, Table1, Rect, DataCol, Column, State);					


was iss da falsch ?? :(

_________________
"Only wimps use tape backup: real men just upload their important stuff on ftp, and let the rest of the world mirror it." (Linus Torvalds)
OperatingSystem Laptop (Ubuntu Hardy)