Sign in Join
FPDoc Onlineexperiment

TComponent.ValidateRename procedure

Member of TComponentprotectedIn unit Classes

Called when a name change must be validated.

Declaration

pascal
procedure ValidateRename(AComponent: TComponent; const CurName: string; 
 const NewName: string); virtual

Description

ValidateRename checks whether NewName is a valid replacement for CurName for component AComponent. Two owned components of a component can not have the same name. If a child component with the same name is found, then an exception is raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.