#38 How to make changes via a new class?

closed
nobody
None
5
2005-07-16
2005-07-16
cwuensch
No

Hi,

I am working on a special replacement procedure (based
on the Search&Replace-Example), which searches for a
regular expression and builds the replace-string from the
actual match.

Therefor it is required that the AReplace parameter of
the DoOnReplaceText-procedure is declared as a VAR-
parameter instead of a CONST, so that the replace-
string can be changed within that procedure.

Since I do not want to make changes to the original
component, is there probably a simple way to
implement that little change in a seperate class or sth.
else?

I have already tried to make a new class containing an
OVERRIDE-procedure, that replaces the
DoOnReplaceText, but I get only the message, the
declaration would not match to the one before.

I am looking forward to any help...

Greets, Chris

Discussion

  • cwuensch
    cwuensch
    2005-07-16

    Logged In: YES
    user_id=1311980

    Hi again,

    its allright, I have found out, that there is a procedure named
    Replace in the SearchEngine, which can be overwritten by a
    new class.

    Greets, Chris

     
  • cwuensch
    cwuensch
    2005-07-16

    • status: open --> closed