Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Delphi: Consolen Programierung?

Empfohlene Antworten

Veröffentlicht

Ich kann leider nur ein wenig Pascal, aber da mich Turbo Pascal langsam aufregt und ich keine .exe compilieren kann, wollte ich das so machen, das ich mit Delphi 2.0 (von nem freund bekommen) Pascal einfach programiere, mein freund hat gesagt, er ginge, dass man einen befehl irgendwo hinschreibt, dann basiert der quelltext auf pascal :)

Danke schonmal im Vorraus

Schimpi


program ConsoleExceptionHandling;

{$APPTYPE CONSOLE}

uses

  SysUtils;

procedure ExecuteProgram;

begin

  //Programm führt etwas aus

  raise Exception.Create('Unforeseen exception');

 end;

begin

  try

    ExecuteProgram;

    except

    //Fehlerbedingungen behandeln

    WriteIn('Program terminated due to an exception');

    //Setzen Sie ExitCode <> 0, um für die Fehlerbedingung ein Flag zu setzen (Konvention)


    ExitCode := 1;

   end;

end.

Das ist ein Beispiel aus der Delphi Hilfe. Also ganz normales Pascal. Auch bei Win32 Anwendungen ist der Code Pascal, genauer Object Pascal (Delphi Pascal).

Ich denke dein Freund meinte {$APPTYPE CONSOLE}. Damit wird eine Konsolenanwendung erzeugt.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.