Skip to content

TFPSList.DeleteRange

Delete a range of elements

Declaration

Source position: fgl.pp line 78

public 
  procedure DeleteRange(IndexFrom: Integer; IndexTo: Integer);

Description

DeleteRange deletes elements from IndexFrom till IndexTo. Both indexes are zero based, and IndexTo must be bigger than IndexFrom. Using this method results in less moving of data in memory, and as such is more effective than deleting the elements one by one using TFPSList.Delete .

Errors

If invalid indexes are specified, an EListError exception will be raised.

See also

Name Description
EListError Exception thrown when a list-related error occurs
TFPSList.Delete Delete an item from the list