Autor Beitrag
freshness
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 43

Win XP Pof, Vista
Delphi 2006
BeitragVerfasst: Fr 20.05.05 21:10 
Hi, wieder ma eine Anfängerfrage.

wie kann ich aus einer Prozedur auf Komponenten am Formular zugreifen ?
Was muss bei type stehen und wie muss die prozedurzeile aussehen. :?:

Was hat das mit dem "(Sender:TObject)" auf sich, ich blick da nicht durch. :cry:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
procedure Getdata(ADirectory: string; AMask: String; ARekursiv: Boolean);
var
  SR: TSearchRec;
  Kcount:integer;
  Kcheck, DAtum,kat, zeit, vdatei, row:string;
  f: TextFile;
  s: String;

begin
  // was auch immer da gemacht werden soll
  // z. Bsp.:

  Button1.caption := 'blabla';
  // oder
  Tform1.Button1.caption := 'blublu';

end;


thx

Alex

Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt.
freshness Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 43

Win XP Pof, Vista
Delphi 2006
BeitragVerfasst: Fr 20.05.05 21:33 
Das
ausblenden Delphi-Quelltext
1:
2:
type
  procedure Getdata(ADirectory: string; AMask: String; ARekursiv: Boolean);


und das

ausblenden Delphi-Quelltext
1:
procedure Tform1.Getdata(ADirectory: string; AMask: String; ARekursiv: Boolean);					



löste mein Problem.

Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt.