Autor Beitrag
maveric
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 54


D7
BeitragVerfasst: Sa 26.03.05 11:51 
Hallo,

bitte nicht lachen.

Die Theorie ist ja ganz nett und verständlich, mein Problem ist das umsetzen im Quelltext.


Kann mir bitte jemand ein Quelltextbeispiel für ein selbsterstellte Prozedur geben?

z.B mit dem Inhalt edit1.text:= '0';

Bitte in der Form :


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
Type
.....blabla

Puplic
....
private
....
implementation
....
procedure TForm1.FormCreate(Sender: TObject);
...



Bitte erst deklarieren und dann auch noch aufrufen.

Danke


Moderiert von user profile iconTino: Topic aus Sonstiges verschoben am So 27.03.2005 um 21:10
Sprint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 849



BeitragVerfasst: Sa 26.03.05 12:05 
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:
unit Unit1;

interface

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

type
  TForm1 = class(TForm)
    Edit1: TEdit;
    procedure FormCreate(Sender: TObject);
  private
    { Private-Deklarationen }
    procedure MyProcedure;
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.FormCreate(Sender: TObject);
begin
  MyProcedure;
end;

procedure TForm1.MyProcedure;
begin
  Edit1.Text := '0';
end;

end.

_________________
Ciao, Sprint.
maveric Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 54


D7
BeitragVerfasst: Sa 26.03.05 12:15 
Vielen DANK