Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/IDE/Project Management/Project Source    [ Add a report in this area ]  
Report #:  6294   Status: Closed
Retain {$IFDEF} in DPR uses clause
Project:  Delphi Build #:  4.453
Version:    12.0 Submitted By:   Lechner Stefan
Report Type:  New Feature Request Date Reported:  10/28/2003 2:50:58 AM
Severity:    Infrequently encountered problem Last Updated: 11/25/2012 5:14:21 PM
Platform:    All platforms Internal Tracking #:   196766
Resolution: Fixed (Resolution Comments) Resolved in Build: : XE3
Duplicate of:  None
Voting and Rating
Overall Rating: (8 Total Ratings)
5.00 out of 5
Total Votes: 236
Steps to Reproduce:
assume  following statements in the Project.dpr

{$ELSE }

add a unit to the project

the rewritten Project.dpr will look like

would be nice if the IDE could keep the handmade defines

Thomas Jensen at 3/12/2007 1:03:57 AM -
I also see this problem in Delphi 7.

I also tried to use ifdefs in the unit list in the dpr file. However, when Delphi saves the project, those ifdefs are deleted without warnings. This makes it impossible to have conditional units in the dpr file.

Edwin Frieswijk at 10/4/2010 8:06:03 AM -
Same for comments
Same for INCLUDES, could be handy if they were not removed. Trying to use an include file to include a submodule into the dpr (so that you dont have to maintain several dprs when one submodel changes) but this behaviour makes it impossible. Delphi should respect my include (and push the contents into the dproj as wel)

Server Response from: ETNACODE01