Skip to content

AppendStr

Append one ansistring to another.

Declaration

Source position: sysstrh.inc line 71

  procedure AppendStr(var Dest: string; const S: string);

Description

AppendStr appends S to Dest.

This function is provided for Delphi compatibility only, since it is completely equivalent to Dest:=Dest+S.

Errors

None.

See also

Name Description
AssignStr Assigns an ansistring to a null-terminated string.
DisposeStr Dispose an ansistring from the heap.
NewStr Allocate a new ansistring on the heap.

Example

Program Example62;
{ This program demonstrates the AppendStr function }
Uses sysutils;
Var S : AnsiString;
Begin
  S:='This is an ';
  AppendStr(S,'AnsiString');
  Writeln ('S = "',S,'"');
End.