[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 299
  • Last Modified:

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.
0
titz
Asked:
titz
1 Solution
 
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
 
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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
 
itamarCommented:
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
 
titzAuthor Commented:
i think thats the solution !
thanks
titz

0

Featured Post

Industry Leaders: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now