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> copy create sub string pp 71</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 COPY                         Create Sub String                        pp 71

 Syntax:  Copy (OldStr, Position, Count) ;

 Type:    String

 Form:    Function

 Purpose: Create a substring from OldStr, starting at Position, for Count
          number of characters.


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


 Usage:
       VAR
          NewStr : String [x]         ;       { New string of X characters }
          OldStr : String [x]         ;       { Old string of X characters }

       BEGIN
          NewStr := Copy (OldStr,4,2) ;       { 2 bytes from position #4   }
       END.

See Also: Concat Delete Insert Length Pos

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