[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Classes' (#fcl)

# TComponent.FindComponent

Finds and returns the named component in the owned components.

## Declaration

`public function TComponent.FindComponent(`
`const AName: String`
`):TComponent;`

## Description

FindComponent searches the component with name AName in the list of owned components. If AName is empty, then Nil is returned.

## See also

TComponent.Components |  | Indexed list (zero-based) of all owned components.
TComponent.Name |  | Name of the component.