lazarus

Writeln is not working the right way it should


I am new to Lazarus and trying to write some basic code:

unit Unit1;

{$mode objfpc}{$H+}

interface

uses
  Classes, SysUtils, Forms, Controls, Graphics, Dialogs;

type
  TForm1 = class(TForm)
  private
    // Hier können Sie private Mitglieder deklarieren, wenn benötigt.
  public
    // Hier können Sie öffentliche Mitglieder deklarieren, wenn benötigt.
  end;

var
  Form1: TForm1;
  jame: string;

implementation

{$R *.lfm}

begin
  writeln(jame);

end.      

The problem is that it is showing this error:

image

It would be nice if someone were able to help me.


Solution

  • I Just changed the Project file to "Programm" and it worked. enter image description here