The ClassInfo method or DelphiVCL.Application.ClassInfo is used to return a pointer to the run-time type information (RTTI) table for the object type.
ClassInfo provides access to the RTTI table for a given object type.
Some classes do not provide run-time type information. For these classes, ClassInfo returns nil (Delphi) or NULL (C++). All classes descended from TPersistent do provide run-time type information.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.ClassInfo using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.ClassInfo) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.ClassInfo using the print() command:
1 2 |
print(DelphiVCL.Application.ClassInfo) print(DelphiVCL.Application.ClassInfo.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.