[Overview][Constants][Types][Classes][Index] |
Delete a range of elements
Source position: fgl.pp line 78
public procedure TFPSList.DeleteRange( |
IndexFrom: Integer; |
IndexTo: Integer |
); |
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.
If invalid indexes are specified, an EListError exception will be raised.
|
Exception thrown when a list-related error occurs |
|
|
Delete an item from the list |