compile only one unit

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.
LVL 1
titzAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
itamarConnect With a Mentor Commented:
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
 
bsimserCommented:
Alt+F9 (or is it Ctrl+F9). One of the two will only compile the current unit you're working on.
0
 
viktornetCommented:
Or just go to Project/Compile I'm using Delphi 3

//Viktor
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
titzAuthor Commented:
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
 
rickpetCommented:
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
 
aimingCommented:
I use DOS Prompt:
  c:\delphi3\bin\dcc32 thedcu.pas
ok. now.
0
 
titzAuthor Commented:
i think thats the solution !
thanks
titz

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.