For example, this simple program:
Program Helloworld;
Begin
writeln ('Hello world!');
readln;
End;
For example, this simple program:
Program Helloworld;
Begin
writeln ('Hello world!');
readln;
End;
You can get rid of all the forms that a new project creates, and just have a program in the project file.
This looks like a console app so you'll want to do some steps. This is taken from the excellent delphi.about.com:
- Select "File | New Application"
- Select "Project | Remove From Project..."
- Select Unit1 (Form1) and click OK. Delphi will remove the selected unit from the uses clause of the current project.
- Select "Project | View Source"
- Edit your project source file: • Delete all the code inside "begin" and "end". • After the uses keyword, replace the "Forms" unit with "SysUtils". • Place {$APPTYPE CONSOLE} right under the "program" statement.
Select "File|New|Other..." - the "New Items" Dialog appears
Select "Delphi Projects" on the left panel
Select "Console Application" on the right panel
Click "OK" button.
That is all.