Recent

Author Topic: How to select which unit to addressed in Uses (equal names)  (Read 251 times)

CM630

  • Hero Member
  • *****
  • Posts: 1299
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
How to select which unit to addressed in Uses (equal names)
« on: February 17, 2025, 10:20:44 am »
sometimes when I add:
uses ... Dialogs...
the addressed file is ...lazarus\lcl\dialogs.pp (when creating  project)
and sometimes it is ...lazarus\fpc\3.2.2\source\packages\fv\src\dialogs.pas (in a unit of an LPK).
Is there a way to switch? I want to use ShowMessage (dialogs.pp).
Лазар 4,0RC2 32 bit (sometimes 64 bit); FPC3,2,2

PascalDragon

  • Hero Member
  • *****
  • Posts: 5906
  • Compiler Developer
Re: How to select which unit to addressed in Uses (equal names)
« Reply #1 on: February 17, 2025, 08:48:25 pm »
It depends on whether your project and/or project depends on the LCL package. The paths to the LCL are only added if your package depends on the LCL otherwise the search path of the compiler which contains FreeVision's Dialog unit take precedence.

 

TinyPortal © 2005-2018