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> insert insert sub string into string pp 69</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 INSERT                 Insert Sub String into String                  pp 69

 Syntax:  Insert (SubStr, String, Position

 Type:    String

 Form:    Procedure

 Purpose: Insert Sub String into String starting at Position.


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


 Usage:
       CONST
           SubStr : String [3] = 'ABC' ;          { String to insert     }
           Target : String [6] = 'DEF' ;          { Leave room to Insert }

       BEGIN
           Insert (SubStr, Target, 1)  ;          { ABCDEF is result     }
       END.

See Also: Concat Copy Delete Length Pos

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