Links
EControl Form Designer Pro
TzCustomFormDesigner.RenameMethod Method

Renames an existing event handler.

procedure RenameMethod(const CurName: string; const NewName: string);

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. 

This methods calls OnRenameMethod event to update method name in script code. 

 

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

Copyright (c) 2004 - 2011 EControl Ltd.. All rights reserved.
What do you think about this topic? Send feedback!