Recent

Author Topic: lazarus information aand fikes  (Read 336 times)

crownfield

  • New Member
  • *
  • Posts: 19
lazarus information aand fikes
« on: February 15, 2026, 05:28:38 am »
form and unit have the sane file names. windows pc.
urltest     .pas, .frm       

the problem is that lazarus crate a new blank form every compile.
where has it saved the blank  form name? why does it not use the form which matches the pas file name?? I think I  need to correct the file name somewhere, but where?

I know it is my fault, just not how to fix it.

thanks for any help.

LeP

  • Full Member
  • ***
  • Posts: 227
Re: lazarus information aand fikes
« Reply #1 on: February 15, 2026, 11:19:12 am »
When you open a blank project, you can use SAVE, SAVE AS or SAVE ALL form Menu of IDE to save all files of your project.

The name of the file .pas is the name of the unit (you see it at the begin of the unit itself, where UNIT is declared). If you have a FORM inside, there is an additional file wiht the same name and extension .lfm.

The name of the components (like Form) are nothing to do with the Unit or the file.

Remember that the name of the files (i.e.  xxx.pas and/or xxx.lfm) MUST MATCH the name inside the file itself (Unit xxx).
« Last Edit: February 15, 2026, 11:20:52 am by LeP »
Un Sistema per domarli, un IDE per trovarli, un codice per ghermirli e nel framework incatenarli.
An operating system to tame them, an IDE to find them, a code to catch them and in the framework chain them.

 

TinyPortal © 2005-2018