summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-08 16:01:38 +0100
committerErich Eckner <git@eckner.net>2017-11-08 16:02:50 +0100
commit6764564ecf62105f87443b08395aaab2e1b7aec6 (patch)
treeb1ff394eedc4618bd2b0fd797afe7e837dd709d3
parent6b624c81a152b8a33ed19eba2350a92f2f8e4a40 (diff)
downloadunits-6764564ecf62105f87443b08395aaab2e1b7aec6.tar.xz
mystringlistunit.pas: last neu
-rw-r--r--mystringlistunit.pas6
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);