When attempting to run UI with debugging then it gives this error...
Duplicate published method "WebMemo1Change" at...
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
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.