In this post, you’ll learn more about Initialize or DelphiVCL.Application.Initialize method provides an opportunity to initialize subsystems. Initialize is the first method called by the project source file. It calls the InitProc procedure pointer.
Warning: Only one instance of InitProc can be defined in an application. If more than one unit assigns a value to InitProc, only the last assignment will work. You can, however, call the previous value of InitProc from an initialization procedure, so that all initialization procedures are executed.
For projects that do not assign a value to InitProc, the call to Initialize can be safely deleted from the project source.
Learning more about Initialize method will allow you to easily build programs with a Python program maker.
Table of Contents
How to browse the properties, methods, and built-in properties of the DelphiVCL.Application.Initialize?
Let’s browse all the properties and methods of the DelphiVCL.Application.Initialize using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.Initialize) |
How do we see the output of the Dir() command?
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.Initialize using the print() command:
1 2 |
print(DelphiVCL.Application.Initialize) print(DelphiVCL.Application.Initialize.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.