I'm not exactly sure what you mean with the Base is overwritten but your use of Form1
in your code should probably be changed to Self
.
Form1
is a global reference to one instance of (probably) your Base form. You could create a zillion TMechan form instances where each and every Open1Click
would be changing a property of that One Form.
I assume the forms are autocreated. While that is easy to get going, I would strongly advice you to not autocreate each and every form and to remove all global references to forms (like this form1) where possible.
The only form that should get autocreated is your main form. All other forms should be created when needed, something like myform := TMechan.Create(AOwner);
procedure TMechan.Open1Click(Sender: TObject);
begin
if OpenDialog1.Execute then
Self.Memo1.Lines.LoadFromFile(OpenDialog1.FileName );
CopyCylMemoToRecord;
ShowMechanicalValues;
end;