Duplicate published method Error message when running UI in debugging mode

68 Views Asked by At

When attempting to run UI with debugging then it gives this error...

Duplicate published method "WebMemo1Change" at...

Error Message

What may be the cause of it and how would you correct the error?

Was attempting to align text in memo to center, however when I added code it didn't work so removed the added code and attempted to run Delphi in debugging mode however recieved this message

1

There are 1 best solutions below

0
Shaun Roselt On BEST ANSWER

It looks like you have two or more onChange events declared for your WebMemo1.

If you look through your .pas file, you'll see somewhere in there you'll have multiple WebMemo1Change method declarations. It'll look something like this:

procedure WebMemo1Change(Sender: TObject);
procedure WebMemo1Change(Sender: TObject);

Just remove the duplicate ones. There can only be one that is declared with that name.