Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> concat concatenate strings pp 71</b> http://www.X-Hacker.org [<<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

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson