next up previous contents
Next: String Length Up: String Previous: String Comparison   Contents

String Concatination

Two strings can be concatinated (the second one appended to the end of the first one) to form a third string. For example, you can write the following code:

var
  firstname : string [20];
  lastname : string [25];
  wholename : string [46];
begin
  {...}
  wholename := lastname + ',' + firstname;
  writeln(wholename);
  {...}
end.



Tak Auyeung 2003-12-03