The ClassName method or DelphiVCL.Application.ClassName is used to return a string indicating the type of the object instance (as opposed to the type of the variable passed as an argument).
Use ClassName to obtain the class name from an object instance or class reference. This is useful for differentiating object instances that are assigned to a variable that has the type of an ancestor class.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.ClassName using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.ClassName) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.ClassName using the print() command:
1 2 |
print(DelphiVCL.Application.ClassName) print(DelphiVCL.Application.ClassName.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.