Solved

compile only one unit

Posted on 1998-08-21
7
291 Views
Last Modified: 2010-04-04
Is it possible under D3 only to compile one certain unit (which includes only code, no form) ?
I need this to avoid a bug in D3.
0
Comment
Question by:titz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 1

Expert Comment

by:bsimser
ID: 1337410
Alt+F9 (or is it Ctrl+F9). One of the two will only compile the current unit you're working on.
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1337411
Or just go to Project/Compile I'm using Delphi 3

//Viktor
0
 
LVL 1

Author Comment

by:titz
ID: 1337412
This is not want i want. Project /Compile or Alt F9 compiles all units which have been changed in a project. I will only compile one unit, no project !!
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:rickpet
ID: 1337413
No there is no way to compile only one unit...

The closest workaround is to start a new project and include the unit in the uses clause.  Delphi will compile the unit and create a dcu...

Rick

0
 

Expert Comment

by:aiming
ID: 1337414
I use DOS Prompt:
  c:\delphi3\bin\dcc32 thedcu.pas
ok. now.
0
 
LVL 4

Accepted Solution

by:
itamar earned 50 total points
ID: 1337415
Hi titz,

well indeed there is a little trick:

1 - Click in the Open Project button (don't us the Open... menu !)
2 - Change the file type from .dpr to .pas
3 - Open the desired unit
4 - Then compile it !
5 - Be warned to not use others Project commands, like add to project etc...

IHTH
0
 
LVL 1

Author Comment

by:titz
ID: 1337416
i think thats the solution !
thanks
titz

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question