Previous: Continue procedure To the Table of Content Next: Cos function

- 4.62.2.17 -
Standard Units
System Unit
System Unit Procedures and Functions

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: Continue procedure To the Table of Content Next: Cos function
Continue procedure Table of Content Cos function

- 4.62.2.17 -