Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange forms (?) problem
#4
It has always been possible to reference units in your project without explicitly including them in it, as long as the compiler is able to find them (via Project options paths or global library path). However, this is not the "correct" way of doing it. Except from library units (3rd party and even your own), which are included in global library path for all projects, your units belonging to the project - especially forms - should be included explicitly in the .DPR file.

Delphi IDE builds the list of units of the project from the units referenced in the DPR file. Likewise, the list of forms come from there (the IDE retrieves the form names from the comment added after the unit name where the form is declared, in the DPR file). If the form is not listed in the project that's because the comment is not there. Example:

uses
Unit1 in 'Unit1.pas' {IWForm1: TIWAppForm},

In the case above the IDE will list IWForm1 as belonging to your project because it is explicitly listed in the DPR file.

I strongly recommend you to explicitly add all units to the project (using the recommended via IDE's menu option Project -> Add to Project). Once you do that, Delphi IDE and compiler will be able to list and build all units correctly.
Reply


Messages In This Thread
Strange forms (?) problem - by SorenJensen - 12-16-2019, 07:17 AM
RE: Strange forms (?) problem - by kudzu - 12-16-2019, 02:46 PM
RE: Strange forms (?) problem - by SorenJensen - 12-16-2019, 03:44 PM
RE: Strange forms (?) problem - by Alexandre Machado - 12-16-2019, 10:16 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)