(Gast)
n/a Beiträge
|
Re: const in anderer Unit verwenden?
26. Jan 2005, 16:38
Danke,
aber funzt net
Unit 1:
Delphi-Quellcode:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private-Deklarationen }
public
{ Public-Deklarationen }
end;
var
Form1: TForm1;
implementation
uses
unit2;
{$R *.dfm}
procedure TForm1.FormCreate(Sender: TObject);
begin
ShowMessage(Unit2.Test);
end;
end.
Unit2:
Delphi-Quellcode:
unit Unit2;
interface
implementation
const
Test = ' lol';
end.
Undefinierter Bezeichner 'Test'
|
|
Zitat
|