RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.ValidateRename Method

Determines if a form can rename one of its owned components.

Pascal
procedure ValidateRename(AComponent: TComponent; const CurName: string; const NewName: string); override;
C++
virtual __fastcall ValidateRename(TComponent * AComponent, const AnsiString CurName, const AnsiString NewName);

The ValidateRename method checks to see if a form can rename one of its owned components, passed in AComponent, from its current name (CurName) to the string passed in NewName. If AComponent is nil (Delphi) or NULL (C++) or NewName is already the name of a component in the form's list, ValidateRename raises an EComponentError exception. 

 

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