Thema: Delphi Problem mit procedure

Einzelnen Beitrag anzeigen

WhatAmI

Registriert seit: 29. Aug 2004
Ort: lamadelaine
16 Beiträge
 
#1

Problem mit procedure

  Alt 5. Sep 2004, 14:27
Delphi-Quellcode:
procedure quadrantx(x:integer);
begin
 if form1.pbMain.width div 2 > x then
   x:=x
     else
       if form1.pbMain.width div 2 < x then
         x:=-x;
end;

procedure quadranty(y:integer);
begin
 if form1.pbMain.height div 2 > y then
   y:=y
     else
       if form1.pbMain.height div 2 < y then
         y:=-y;
end;
wenn ich die nachher aufrufe bekomme ich immer ne fehlermeldung!

der aufruf lautet:
Delphi-Quellcode:
sg2.cells[0,sg1.RowCount-1]:=inttostr(quadrantx(x));
sg2.cells[1,sg1.RowCount-1]:=inttostr(quadranty(y));
was hab ich bloss falschgemacht!

[edit=sakura] [delphi]Tags Mfg, sakura[/edit]
  Mit Zitat antworten Zitat