Vcl.Forms.TApplication.Run
Delphi
procedure Run;
C++
void __fastcall Run();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TApplication |
Description
Executes the application.
Do not call Run. When creating a new project, The IDE automatically creates a main program block in the project file that calls the Run method. When the application is executed, the application's Run method is called.
Run contains the application's main message loop. The call to Run does not return until the application's message loop terminates.
On startup, Run checks whether the current session is a local or a remote session. It also gets notified when the session changes from local to remote or vice versa during program execution. Learn more about Double-buffering and Remote Connections.
See Also
- Vcl.Forms.TApplication.Create
- Vcl.Forms.TApplication.CreateForm
- Vcl.Forms.TApplication.CreateHandle
- Vcl.Forms.TApplication.MainForm
- Vcl.Forms.TApplication.Terminate
Code Examples