Vcl.Forms.TCustomForm.ValidateRename

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ValidateRename(AComponent: TComponent;  const CurName, NewName: string); override;

C++

virtual void __fastcall ValidateRename(System::Classes::TComponent* AComponent, const System::UnicodeString CurName, const System::UnicodeString NewName);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TCustomForm

Description

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

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.

See Also