[<<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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson