Unit 'fgl' Package
[Overview][Constants][Types][Classes][Index] [#rtl]

TFPSList.DeleteRange

Delete a range of elements.

Declaration

Source position: fgl.pp line 81

public procedure TFPSList.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

EListError

  

Exception thrown when a list-related error occurs.

TFPSList.Delete

  

Delete an item from the list.


Documentation generated on: Nov 23 2024