(Co-Admin)
Registriert seit: 7. Jul 2003
Ort: Schwabenländle
14.929 Beiträge
Turbo Delphi für Win32
|
Re: Funktion erstellen
19. Jul 2004, 20:41
Probier's mal so:
Delphi-Quellcode:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private-Deklarationen }
procedure happy(app, icon, destfile: String);
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.happy(app, icon, destfile: String);
begin
ShowMessage(' Anwendung = ' + app + #10#13 + ' Icon = ' + icon + #10#13 + ' Ausgabedatei = ' + destfile);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
happy(' Test.exe', ' test.ico', ' c:\test');
end;
end.
|
|
|