[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sysutils' (#rtl)

AppendStr

Append one ansistring to another.

Declaration

Source position: sysstrh.inc line 76

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

AssignStr

  

Assigns an ansistring to a null-terminated string.

NewStr

  

Allocate a new ansistring on the heap.

DisposeStr

  

Dispose an ansistring from 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.
The latest version of this document can be found at lazarus-ccr.sourceforge.net.