Delphi What is the Name Property in DelphiVCL.Application?

FireWind

Свой
Регистрация
2 Дек 2005
Сообщения
1,957
Реакции
1,199
Credits
4,009
What is the Name Property in DelphiVCL.Application?
By Muhammad Azizul Hakim October 11, 2021

The Name or DelphiVCL.Application.Name property specifies the name of the component as referenced in code.

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

Use Name to refer to the component in code.

Warning: Changing Name at run time causes any references to the old name to become undefined. Any subsequent code that uses the old name will cause an exception.

How can I examine the properties and methods of the DelphiVCL.Application.Name?​

Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.Name using dir() command:
Python:
import DelphiVCL
 
dir(DelphiVCL.Application.Name)
See the responses in our Windows command prompt:
1633934741343.png
You can also read short information about the DelphiVCL.Application.Name using the print() command:
Python:
print(DelphiVCL.Application.Name)
print(DelphiVCL.Application.Name.__doc__)
See the responses in our Windows command prompt:
1633934770074.png