diff options
author | Erich Eckner <git@eckner.net> | 2017-11-08 16:01:38 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-11-08 16:02:50 +0100 |
commit | 6764564ecf62105f87443b08395aaab2e1b7aec6 (patch) | |
tree | b1ff394eedc4618bd2b0fd797afe7e837dd709d3 | |
parent | 6b624c81a152b8a33ed19eba2350a92f2f8e4a40 (diff) | |
download | units-6764564ecf62105f87443b08395aaab2e1b7aec6.tar.xz |
mystringlistunit.pas: last neu
-rw-r--r-- | mystringlistunit.pas | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mystringlistunit.pas b/mystringlistunit.pas index 381e5dc..da65e29 100644 --- a/mystringlistunit.pas +++ b/mystringlistunit.pas @@ -43,6 +43,7 @@ type procedure dump(pro: tProtokollant; prefix: string); procedure nichtInSubRoutine(s: string); procedure addWithLineBreaks(s: string); + function last: string; end; procedure _del(var s: string; p,c: longint); inline; // identisch zu delete(s,p,c) -- lediglich um delete innerhalb von tMyStringList verfügbar zu haben @@ -645,6 +646,11 @@ begin add(erstesArgument(s,#13,false)); end; +function tMyStringList.last: string; +begin + result:=self[count-1]; +end; + // allgemeine Funktionen ******************************************************* procedure _del(var s: string; p,c: longint); |