Previous: 4.67.2.19. Dec procedure To the Table of Contents Next: 4.67.2.21. Dispose procedure
4.67.2.19. Dec procedure Table of Contents 4.67.2.21. Dispose procedure

- 4.67.2.20. -
Table of Contents
4. Standard Units
4.67. System - Built-in routines
4.67.2. System Unit Procedures and Functions
4.67.2.20. Delete procedure


4.67.2.20. Delete procedure

Targets: MS-DOS, OS/2, Win32

System Unit

Deletes a substring from a string.

Declaration:
procedure Delete(var S: String; Index, Count: Longint);
Remarks:
S is a string-type variable.
Index and Count are integer-type expressions. Delete deletes Count characters from S starting at the Index position. If Index is larger than the length of S, no characters are deleted. If Count specifies more characters than remain starting after the Indexth position, the remainder of the string is deleted.

Example:
  Delete('AAABBBCCC' , 4, 3);  // 'AAACCC'

  Delete('123456789', 22, 5);  // '123456789'



Previous: 4.67.2.19. Dec procedure To the Table of Contents Next: 4.67.2.21. Dispose procedure
4.67.2.19. Dec procedure Table of Contents 4.67.2.21. Dispose procedure

- 4.67.2.20. -