Sign in Join
Wiki copytemporary

Out/de

Zurück zu den reservierten Wörtern.

Das reservierte Wort out gehört zum Aufruf von Prozeduren und Funktionen.

Das reservierte Wort out wird im Kopf von Prozeduren und Variablen verwendet.

Das reservierte Wort out nimmt bei der Parameterübergabe keinen Wert entgegen, sondern dient dazu, einen Wert zurückzugeben.

Beispiel:

pascal
function TryStrToInt(const strUebergabe: string; out intZahl: Integer): Boolean;
var
  intRueckgabe: Integer;

begin
  Val(strUebergabe, intZahl, intRueckgabe);  // Prüft, ob der String strUebergabe ein Integerwert ist
  Result := intRueckgabe = 0;                // Gibt als Ergebnis den Wert von intRueckgabe aus oder im Fehlerfall den Wert 0
end;

From the Free Pascal wiki, page "Out/de", as it stood on 2020-02-23 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 2, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.