[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CONCAT                      Concatenate Strings                       pp 71

 Syntax:  Concat (St1, St2, {StN} ) ;

 Type:    String

 Form:    Function

 Purpose: Create a new string which is the sum of the arguments.

 Notes:   The plus (+) operator yields the same result as Concat.
          Concat is provided to maintain compatibility with other Pascal
          compilers.  The arguments may be any number of string expressions
          separated by commas.  A run time error will occur if the length
          of the new string exceeds 255 characters.


 ----------------------------------------------------------------------------


 Usage:
       VAR
          St1   : String [x]         ;           { String of X length  }
          St2   : String [x]         ;           { String of X length  }
          StNew : String [255]       ;           { Max length is 255   }

       BEGIN
          StNew := Concat (St1, St2) ;           { StNew = St1 + St2   }
          StNew := St1 + St2         ;           { Equivalent function }
       END.

See Also: Copy Delete Insert Length Pos
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson