Re: does FormClose have some special magic?



Ante Smolcic wrote:
>
> > You should edit your DPR file so it looks like this:
>
> As a rule, you shouldn't mess with your DPR file.

I think that warning should concern only not to manually touch the Uses
section. If you try to add for instance your comments to the Uses
section, they will be erased the next time Delphi adds or removes Units
from the DPR file again.

But in general, I think it is quite safe place to write your own code in
the DPR unit. At least I have kept some localization related code
snippets in most of my DPR files for about a decade or so.

It is even possible to write complete commans line application using the
DPR file only, without any other Units or Forms, there should be some
Borland examples about this too.
John P
.



Relevant Pages

  • Re: does FormClose have some special magic?
    ... >> swansnow wrote: ... If the username and password are ok, ... >> You should edit your DPR file so it looks like this: ... you shouldn't mess with your DPR file. ...
    (comp.lang.pascal.delphi.misc)
  • Re: does FormClose have some special magic?
    ... If the username and password are ok, ... you shouldn't mess with your DPR file. ... Prev by Date: ...
    (comp.lang.pascal.delphi.misc)
  • Re: does FormClose have some special magic?
    ... you shouldn't mess with your DPR file. ... > I think that warning should concern only not to manually touch the Uses ... > snippets in most of my DPR files for about a decade or so. ...
    (comp.lang.pascal.delphi.misc)