Previous Topic

Next Topic

Inhoudsopgave

Book Index

Name Property

Property Property Name: String (R/W)

Description

Specifies the name of the component as referenced in code.

Remarks

This property is common to all TForm controls.

Details

Use Name to change the name of a component to reflect its purpose in the current application. By default, the sequential names are assigned based on the type of the component, such as 'Button1', 'Button2', and so on.

Use Name to refer to the component in code.

Note: Changing Name at runtime causes any references to the old name to become undefined. Any subsequent code that uses the old name will raise an exception.