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.
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.Name using the print() command:
See the responses in our Windows command prompt:
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)
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__)