Registriert seit: 19. Sep 2004
2.115 Beiträge
|
Re: const in anderer Unit verwenden?
26. Jan 2005, 16:52
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 }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
uses unit2;
procedure TForm1.Button1Click(Sender: TObject);
begin
ShowMessage (unit2.test);
end;
end.
Delphi-Quellcode:
unit Unit2;
interface
const
test = ' lol';
implementation
end.
Also bei mir funzt es wunderbar
|
|
Zitat
|