Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi Programm oder die Unit 'math' ruft sich selbst wieder auf ? (https://www.delphipraxis.net/128925-programm-oder-die-unit-math-ruft-sich-selbst-wieder-auf.html)

thomas2009 9. Feb 2009 16:39


Programm oder die Unit 'math' ruft sich selbst wieder auf ?
 
Hallo

beim Kompilieren erhalte ich diese Fehlermeldung :
Programm oder die Unit 'math' ruft sich selbst wieder auf


Ich habe in uses Math hingeschrieben trotzdem läuft immer das selbe Problem

Delphi-Quellcode:
procedure TForm1.Button3Click(Sender: TObject);
begin
//sqrt(sqr(x)+sqr(y))
Caption:=FloattoStr(sqrt(sqr(StrToInt(Edit1.Text))+sqr(StrToInt(Edit2.Text))));
end;

DeddyH 9. Feb 2009 16:44

Re: Programm oder die Unit 'math' ruft sich selbst wieder au
 
Und wie heißt Deine eigene Unit?

thomas2009 9. Feb 2009 17:00

Re: Programm oder die Unit 'math' ruft sich selbst wieder au
 
meine Unit heisst Unit1
aber das Project heisst math.dpr

DeddyH 9. Feb 2009 17:01

Re: Programm oder die Unit 'math' ruft sich selbst wieder au
 
Dann hat Delphi ja wohl auch irgendwie Recht, findest Du nicht? :zwinker: Benenn das Projekt einfach um und gut is.

thomas2009 9. Feb 2009 17:47

Re: Programm oder die Unit 'math' ruft sich selbst wieder au
 
Stimmt : )
Ich habe habe hier den Namen geändert:
Delphi-Quellcode:
program math1; // vorher war math

uses
  Forms,
  Unit1 in 'Unit1.pas' {Form1};

{$R *.res}

begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.

Danke


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:19 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz