Internet Direct (Indy)
Home
PreviousUpNext
IdDelete Function

Deletes a number of characters from a String beginning at a given position.

Pascal
procedure IdDelete(
    var s: string; 
    AOffset: Integer; 
    ACount: Integer
);
Parameters 
Description 
Variable containing the characters to be deleted.
 
AOffset 
Position or index to begin deleting characters.
 
ACount 
Number of characters to be deleted. 

IdDelete is a procedure used to delete the number of characters in ACount from the variable argument specified in S starting at the position indicated in AOffset. IdDelete isolates the platform- and operating system-specific routines required to perform the delete operation. 

 

On the .Net platform, IdDelete calls Borland.Delphi.System.Delete. 

 

For all other platforms, IdDelete calls the Move procedure from the System.pas unit.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.