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: 77: 78: 79: 80: 81: 82: 83:
| unit Kundendatei;
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, Grids;
type TForm1 = class(TForm) StringGrid1: TStringGrid; StringGrid2: TStringGrid; Button1: TButton; Button2: TButton; Label1: TLabel; Edit1: TEdit; Label2: TLabel; procedure FormCreate(Sender: TObject); procedure Button2Click(Sender: TObject); procedure Button1Click(Sender: TObject); private public end;
var Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject); var i:integer; a:integer ; begin i:=0; a:=0; repeat i:=i+1; a:=a+1; stringgrid1.Cells[0,i]:=floattostr(a);
until i+1>11;
stringgrid1.Cells[1,0]:='Kundenname'; stringgrid1.cells[2,0]:='Kundennummer'; stringgrid1.Cells[3,0]:='Rechnungsbetrag' ;
begin i:=0; a:=0; repeat i:=i+1; a:=a+1; stringgrid2.Cells[0,i]:=floattostr(a);
until i+1>11; stringgrid2.Cells[1,0]:='Kundenname'; stringgrid2.cells[2,0]:='Kundennummer'; stringgrid2.Cells[3,0]:='Rechnungsbetrag' end;
end;
procedure TForm1.Button2Click(Sender: TObject); begin close; end;
procedure TForm1.Button1Click(Sender: TObject); var
end;
end. |