Recent

Author Topic: Removing a form from project  (Read 1017 times)

CarmichaelJohn

  • New Member
  • *
  • Posts: 46
Removing a form from project
« on: July 04, 2020, 04:37:08 pm »
How do I remove a form from my project when it does not appear in the box that shows project forms (accessed by the "Remove from Project" option under the Project menu item?

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Removing a form from project
« Reply #1 on: July 04, 2020, 05:36:49 pm »
Go to the Project Inspector and remove the corresponding unit from there. Although it should also appear in the "Remove from project" dialog.

Note that what appears on those lists are the underlying units (whatever.pas), not the forms themselves (whatever.lfm)

If it still doesn't appear in any of those dialogs then the form is *not* in your project; whether there might be residual files in the project's folder is another question ;)
« Last Edit: July 04, 2020, 05:38:42 pm by lucamar »
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

CarmichaelJohn

  • New Member
  • *
  • Posts: 46
Re: Removing a form from project
« Reply #2 on: July 04, 2020, 06:09:37 pm »
Thank you for your reply.  I checked the Project Inspector and it was not there.  It still shows up when I load the project, so I went to the directory in which that file (form) was located and deleted it. I hope that works.  Once again, thank you.
John

lucamar

  • Hero Member
  • *****
  • Posts: 4219
Re: Removing a form from project
« Reply #3 on: July 04, 2020, 09:31:23 pm »
If you had the file open last time you closed the project  it'll be re-opened again, regadless of whether it's in the project or not. They are two different things: files pertaining (and included in) to the project vs. files opened in the edtor.

That allows you to have, for example, a "reference" text, a extra unit/form from where you're copy-pasting some code/controls, etc. opened alongside the project.

HTH!
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus/FPC 2.0.8/3.0.4 & 2.0.12/3.2.0 - 32/64 bits on:
(K|L|X)Ubuntu 12..18, Windows XP, 7, 10 and various DOSes.

 

TinyPortal © 2005-2018