Create a new component called TNumericEdit that inherits from the DSP one.
Give it the same interface as the previous TNumericEdit, this interface
would just pass the appropriate calls to the inherited DSP component code.
Install the component and open project, volla not a problem. Compile away
etc...
To atleast be able to get into your project without any problems you could
create a TNumericEdit with a dummy interface, the same as the lost
TNumericEdit, that did nothing. Once in your project you could then
manually replace all instances of TNumericEdit with the one from DSP. This
would be more time consuming, but not as tricky. Depending on your point of
view though.
Either method should work fine.
Nahum
-----Original Message-----
From: Mark Howard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 28 March 2000 12:05
To: Multiple recipients of list delphi
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
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz