Sign in Join
FPDoc Onlineexperiment

TFPSList.DeleteRange procedure

Member of TFPSListpublicIn unit fgl

Delete a range of elements.

Declaration

pascal
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 Delete.

Errors

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

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.