Previous: 4.67.2.16. Continue procedure To the Table of Contents Next: 4.67.2.18. Cos function
4.67.2.16. Continue procedure Table of Contents 4.67.2.18. Cos function

- 4.67.2.17. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.17. Copy function


4.67.2.17. Copy function

Targets: MS-DOS, OS/2, Win32

System Unit

Returns a substring of a string.

Declaration:
function Copy(Str: String; StartPos, Count: Longint):String;
Remarks: If StartPos is greater than the length of Str than an empty string is returned.

Example:
  S := Copy('Hello World' , 7, 5);   // 'World'
  S := Copy('Use Protected Mode!', 45, 10);  // ''



Previous: 4.67.2.16. Continue procedure To the Table of Contents Next: 4.67.2.18. Cos function
4.67.2.16. Continue procedure Table of Contents 4.67.2.18. Cos function

- 4.67.2.17. -