How to correctly rename Unit1.pas and form file? the essence of the problem is that when adding a form from one project to another, a match is found by name and the environment does not save, which is understandable ..
I also often come across a mistake in
unit L2;further procedures!
interface
uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ExtCtrls, StdCtrls, MPlayer;
type TL2 = class (TForm) // List of components and procedures present in the program private {Private declarations} public {Public declarations} end;
var L2: TL2; // Error Identifier redeclared: 'L2' a, b: Integer; // variables for calculating the area of shapes x, y: Integer; // Variables of integer type that are responsible for coordinates implementation
{$ R * .dfm}
I will add the same file of the project itself:
program Project1;
uses Forms, L2 in 'L2.pas' {L2};
{$ R * .res}
begin Application.Initialize; Application.Title: = 'Lab №2'; Application.CreateForm (TL2, L2); Application.Run; end.