Mark,
The least hassle is to create a component as others have said.
However, there is another way :-
1. Convert dfms to text
2. Do a global search and replace for name and properties on all
pas and tst files.
I have tools for doing both, if you require them.
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Send reply to: [EMAIL PROTECTED]
Date sent: Tue, 28 Mar 2000 12:04:53 +1200
From: Mark Howard <[EMAIL PROTECTED]>
Organization: Forest Production Systems Ltd
Subject: [DUG]: Globally replacing a component
> Hello
> This is a disaster recovery question!
>
> My production machine has died. My backup covered my project
> files OK but (as Murphy would have it) there is a one-off
> component (TNumericEdit) that was provided to me by a contract
> programmer (and of which there are maybe 50 instances of in the
> project), which escaped my backup.
>
> When I try to load the project on my second machine and open the
> MainUnit I get a message saying that the class TNumericEdit is
> not found and that if I continue the the components are likely to
> be deleted from the project.
>
> Assuming that I cannot track down another copy of this component,
> I would like to replace it globally with.one from the DSP. I
> anticipate that I will just then have to merely recode the
> appropriate events of the new components.
>
> If so I would appreciate if someone could give me some (newbie
> level) instructions on how to go about replacing each instance of
> the TNumericEdit and keeping the original component events code
> intact. Is this possible?
>
> TIA
>
> Mark
>
Rohit
======================================================================
CFL - Computer Fanatics Ltd. 21 Barry's Point Road, AKL, New Zealand
PH (649) 489-2280
FX (649) 489-2290
email [EMAIL PROTECTED] or [EMAIL PROTECTED]
======================================================================
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz