Previous: Dec procedure To the Table of Content Next: Dispose procedure

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

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: Dec procedure To the Table of Content Next: Dispose procedure
Dec procedure Table of Content Dispose procedure

- 4.62.2.20 -