
In this post, you’ll learn more about the MethodName or DelphiVCL.Application.MethodName method returns the name of a class method by address.
There are situations when it is useful to invoke an object method without hard coding the method name in advance. Call MethodAddress to dynamically retrieve the address of such a method by specifying the method name as a string. MethodName is the opposite of this process–by supplying an Address method, the name of the method is returned as a string. You can try to code the MethodName and program some apps using python development tools.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.MethodName using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.MethodName) |
See the responses in our Windows command prompt:

You can also read short information about the DelphiVCL.Application.MethodName using the print() command:
1 2 |
print(DelphiVCL.Application.MethodName) print(DelphiVCL.Application.MethodName.__doc__) |
See the responses in our Windows command prompt:

Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.