Strings
DG Pascal also provides the following functions for handling and
manipulating strings.
APPEND( string1, string2 ); where string2 is added onto the end of string1.
LENGTH( stringname );
SETSUBSTR( Targetstr, tstart, tlen, Sourcestr, sstart );
where Targetstr is the target string
tstart is an integer representing the start position
(within Targetstr) of the substring that is to be replaced
tlen is an integer representing the length of the substring
that you are replacing in Targetstr
Sourcestr is the source string which contains the substring
sstart is an integer which specifies the starting position
of the substring within Sourcestr