Solved

compile only one unit

Posted on 1998-08-21
7
290 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
Independent Software Vendors: 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

733 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