RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
IDesigner60.RenameMethod Method

Renames an existing event handler.

Pascal
procedure RenameMethod(const CurName: string; const NewName: string);
C++
__fastcall RenameMethod(const AnsiString CurName, const AnsiString NewName);

Call RenameMethod to provide an event handler with a new name. The CurName parameter specifies the current name of the event handler, and the NewName parameter specifies the value that the name should be changed to.

Note: Before calling RenameMethod, check whether a method with the new name already exists by calling MethodExists.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!