Hallo liebe Delphi-Helfer
ich habe eine einfache Funktion:
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27:
| unit globale_funktionen;
interface
uses System.SysUtils, System.Classes, Vcl.Dialogs, Vcl.Forms, IniFiles;
function _Ordner_zurück(psPfad: String; piAnzahl: Integer): String;
implementation
function _Ordner_zurück(psPfad: String; piAnzahl: Integer): String; var f: Integer; begin for f := 1 to piAnzahl do begin psPfad := Copy(psPfad, 1, Length(psPfad) - 1); psPfad := ExtractFilePath(psPfad); end;
Result := psPfad; end;
end; |
Jetzt sagt mir Delphi XE4 aber das der Bezeichner Result unbekannt ist.
Kann mir das einer erklären?
_________________
Die Welt besteht aus Zahlen, also ist alles möglich.
[Delphi 5] - [Delphi XE5]