[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Last                                                          StrngTTT



Purpose   To return the last part of a string.

Returns   string

Declaration    Last(N: byte; Str: string):string;

          N is the number of characters to extract.
          Str is the string to extract them from

Uses StrngTTT.



Remarks   If the source string is fewer than N characters long, the
          whole string is returned.

Example


               USES STRNGTTT;
               VAR TTT : STRING;
               BEGIN
                 TTT := LAST(11,'NEVER TAKE DRUGS!');
               END.


The string TTT is assigned the value "Take Drugs!".

See Also: First
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson