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.

Pas: Error in statement :(

Empfohlene Antworten

bei

procedure addieren(x,y,z:real);

sagt der immer fehler "Error 113: Error in Statement."

was kann man dagegen machen?

Schimpi

hm... welcher Compiler? Ist vielleicht auch eine Zeile davor, kommt öfter mal vor...

Turbo Pascal 7

die zeilen davor sind:

program rechner;

uses crt;

var anfang,auswahl:real

begin

procedure addieren;

Z:=X+Y

.

.

.

Schimpi

Was mir geerade aufgefallen ist, die Prozedur addieren soll ja, denk ich mal, ein Ergebnis zurückliefern, oder?

procedure addieren(x, y, z real);

liefert aber kein Ergebnis.

procedure addieren(x, y:real; var z:real);

würde z als Ergebnis zurückliefern.

Mir deinem Problem wird das nicht viel zu tun haben, ist mir nur aufgefallen...

[EDIT]

Hast du dir schonmal angekuckt was die Hilfe zu Error 113 sagt? Bei TP gab es doch auch eine "Online"Hilfe wenn ich mich recht erinnere (kenne es noch aus DOS Zeiten).

Häng mal hinter das

var anfang, auswahl: real
einen Strichpunkt, also in etwa so:
var anfang, auswahl: real;

[EDIT]

Was mir noch aufgefallen ist, ist folgendes:

Soweit ich mich erinnern kann (TP 7.0 ist bei mir aber schon ein paar Jährchen her), gehören doch sowohl Procedure als auch Function-Deklrationen VOR den begin-Tag, oder?

Daran kanns auch noch liegen ...

Gruß,

whisper

Ja habe das Problem gelösst, das erste Begin war falsche gesetzt.

Danke.

Schimpi

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.