Hello World -- My First Program
Download

Downloaded
23 times


Tags

Updated
07/04/2018


Developer
Bismark

The following segment of codes create a Delphi version of the traditional "Hello World!" program using the .Net Runtime Library for Delphi. The program displays the string Hello World!

     var
      Console : _Console;
     begin
       Console := CoConsole.CreateInstance;
       Console.WriteLine_14('Hello! Welcome to .Net Runtime Library for Delphi.');
       Console.WriteLine_14('==================================================');
       Console.WriteLine_14('The program displays the string Hello World!');
       Console.WriteLine;
       Console.WriteLine_14('Hello World!');
       Console.WriteLine_14('Press any key to exit.');
       Console.ReadKey;
     end.
The program uses the the input/output services provided by the run-time library of the .Net Framework. The statement Console.WriteLine_14 uses the WriteLine method. This is one of the output methods of the Console interface in the run-time library. It displays its string parameter on the standard output stream followed by a new line.  Other Console methods are available for different input and output operations.