Thema: Delphi Fehlermeldung

Einzelnen Beitrag anzeigen

Nemesis333

Registriert seit: 10. Apr 2004
33 Beiträge
 
#6

Re: Fehlermeldung

  Alt 12. Apr 2004, 15:18
Delphi-Quellcode:
unit chargen1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls;

type
  TForm1 = class(TForm)
    GroupBox1: TGroupBox;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Label4: TLabel;
    Label5: TLabel;
    Label6: TLabel;
    Label7: TLabel;
    Button1: TButton;
    Button2: TButton;
    Button3: TButton;
    Button4: TButton;
    Button5: TButton;
    Button6: TButton;
    Button7: TButton;
    Edit1: TEdit;
    Edit2: TEdit;
    Edit3: TEdit;
    Edit4: TEdit;
    Edit5: TEdit;
    Edit6: TEdit;
    Edit7: TEdit;
    GroupBox2: TGroupBox;
    Label8: TLabel;
    Label9: TLabel;
    Label10: TLabel;
    Label12: TLabel;
    Label13: TLabel;
    Label14: TLabel;
    Label15: TLabel;
    Label16: TLabel;
    Label17: TLabel;
    Edit8: TEdit;
    Edit9: TEdit;
    Edit10: TEdit;
    Edit12: TEdit;
    Edit13: TEdit;
    Edit14: TEdit;
    Edit15: TEdit;
    Edit16: TEdit;
    Edit17: TEdit;
    Button8: TButton;
    Button9: TButton;
    Button10: TButton;
    Button12: TButton;
    Button13: TButton;
    Button14: TButton;
    Button15: TButton;
    Button16: TButton;
    Button17: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
    procedure Button4Click(Sender: TObject);
    procedure Button5Click(Sender: TObject);
    procedure Button6Click(Sender: TObject);
    procedure Button7Click(Sender: TObject);
    procedure Button8Click(Sender: TObject);
    procedure Button9Click(Sender: TObject);
    procedure Button10Click(Sender: TObject);
    procedure Button12Click(Sender: TObject);
    procedure Button13Click(Sender: TObject);
    procedure Button14Click(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}
var auss, kl, wei, tak, ausd, kk, ge: byte;


procedure TForm1.Button1Click(Sender: TObject);
begin
randomize;
edit1.text:=(inttostr(random(7)+12));
auss:=edit1.text;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  randomize;
edit2.text:=(inttostr(random(7)+12));
kl:=edit2.text;
end;

procedure TForm1.Button3Click(Sender: TObject);
begin
  randomize;
edit3.text:=(inttostr(random(7)+12));
wei:=edit3.text;
end;

procedure TForm1.Button4Click(Sender: TObject);
begin
 randomize;
edit4.text:=(inttostr(random(7)+12));
tak:=edit4.text;
end;

procedure TForm1.Button5Click(Sender: TObject);
begin
 randomize;
edit5.text:=(inttostr(random(7)+12));
ausd:=edit5.text;
end;

procedure TForm1.Button6Click(Sender: TObject);
begin
  randomize;
edit6.text:=(inttostr(random(7)+12));
kk:=edit6.text;
end;

procedure TForm1.Button7Click(Sender: TObject);
begin
  randomize;
edit7.text:=(inttostr(random(7)+12));
ge:=edit7.text;
end;

procedure TForm1.Button8Click(Sender: TObject);
begin
randomize;
edit8.text:=(inttostr(random(30)+15))

end;

procedure TForm1.Button9Click(Sender: TObject);
begin
randomize;
edit9.text:=(inttostr(random(40)+167))
end;

procedure TForm1.Button10Click(Sender: TObject);
var a:integer;
begin
 randomize;
 a:=(random(3));
 if a = 0 then edit10.text:='schlank' ;
 if a = 1 then edit10.text:='normal'   ;
 if a = 2 then edit10.Text:='breit'     ;
 end;

procedure TForm1.Button12Click(Sender: TObject);
var a:integer;
begin
 randomize;
 a:=(random(7));
 if a = 0 then edit12.text:='Ausgestoßener' ;
 if a = 1 then edit12.text:='niederes Folk' ;
 if a = 2 then edit12.Text:='einfaches Volk';
 if a = 3 then edit12.Text:='untere Mittelschicht';
 if a = 4 then edit12.Text:='obere Mittelschicht';
 if a = 5 then edit12.Text:='Landadel';
 if a = 6 then edit12.Text:='Hochadel';
 end;

procedure TForm1.Button13Click(Sender: TObject);
var a:integer;
begin
randomize;
 a:=(random(5));
 if a = 0 then edit13.text:='keiner' ;
 if a = 1 then edit13.text:='einer' ;
 if a = 2 then edit13.text:='zwei' ;
 if a = 3 then edit13.text:='drei' ;
end;

procedure TForm1.Button14Click(Sender: TObject);

begin
 if kl = 16 then edit14.text:='eine' ;
 if kl = 17 then edit14.text:='zwei' ;
 if kl = 18 then edit14.text:='drei' ;
 if kl = 19 then edit14.text:='vier' ;
 if kl < 0 then edit14.text:='keine' ;
end;

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