Autor Beitrag
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 20.09.02 15:31 
Hallo !!!

ICh habe mir ein paar Proceduren gebastelt so a là:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
procedure TeStProcedure;
begin
codecodecodecodecodecodecodecode;
codecodecodecodecode;
codecodecodecodecodecodecode;
end;

Wie kann ich diese Procedure aus meinem Form2 aufrufen ??

PS: Ich denke mal das dass die billigste Frage überhaupt ist, aber ich hab einfach keinen Peil.... :oops:

_________________
In the beginning was the word.
And the word was content-type: text/plain.
DeCodeGuru
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1333
Erhaltene Danke: 1

Arch Linux
Eclipse
BeitragVerfasst: Fr 20.09.02 15:40 
Zitat:
a là


Erst mal dazu: es heißt à la und nicht a là. Vielleicht hast dich ja vertippt.

Nun zum Problem:

So, die Prozedur deklarierst du in den Public-Teil deiner Form1 oder so. Dann musst du nur noch die Form1 in die Unit der Form2 einbinden und dann kannste per
ausblenden Quelltext
1:
Form1.TeStProcedure;					

die Prozedure aufrufen.

Allerdings gibt es dann noch eine kleine Änderung.

ausblenden Quelltext
1:
2:
3:
4:
procedure TForm1.TeStProcedure; 
begin 

end;


So, dass dürfte dan funktionieren. Wenn nicht, dann frage einfach nochmal :)

_________________
Viele Grüße
Jakob
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 20.09.02 15:46 
DeCodeGuru hat folgendes geschrieben:
Erst mal dazu: es heißt à la und nicht a là. Vielleicht hast dich ja vertippt.

:oops: Nehme ich zurück.
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 20.09.02 18:05 
Vielen dank , CodeGuru !!!

@MatthiasSimmack: Was nimmst du zurück ?? du hast doch gar nix gepostet !!! :shock:

_________________
In the beginning was the word.
And the word was content-type: text/plain.