next up previous contents index
Next: Dispose Up: Functions and Procedures Previous: Dec

Delete

   

Declaration:

Procedure Delete (var S : string;Index : Integer;Count : Integer) ;

Description:

Delete removes Count characters from string S, starting at position Index. All remaining characters are shifted Count positions to the left, and the length of the string is adjusted.

Errors:

None.

See also:

Copy,Pos,Insert

Example
Program Example15;

{ Program to demonstrate the Delete function. }

Var 
  S : String;

begin
  S:='This is not easy !';
  Delete (S,9,4); { S:='This is easy !' }
end.



Michael Van Canneyt
Thu Sep 10 14:02:43 CEST 1998