Einzelnen Beitrag anzeigen

Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.171 Beiträge
 
Delphi 12 Athens
 
#2

Re: Forms in Projekt einbinden, die über C&P eingefügt w

  Alt 14. Nov 2003, 13:41
Name des Formulars ändern (z.B. von "Form1" in "Form2")
Unit speichern unter (z.B. von "Unit1.pas" als "Unit2.pas")
Projektdatei ändern:
Delphi-Quellcode:
{***** von *****}
Program Project1;

Uses Forms,
  Unit2 in 'Unit2.pas{Form1};

Begin
  Application.Initialize;
  Application.CreateForm(TForm2, Form2);
  Application.Run;
End.

{***** nach *****}
Program Project1;

Uses Forms,
  Unit1 in 'Unit1.pas{Form1},
  Unit2 in 'Unit2.pas{Form2};

Begin
  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.CreateForm(TForm2, Form2);
  Application.Run;
End.
Projektdatei speichern

Und zuletzt das Projekt neu öffnen
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
  Mit Zitat antworten Zitat