Skip to main content

TdxFastList.DeleteRange(Integer,Integer) Method

Deletes a number of stored pointers, starting from the specified position within the list.

Declaration

procedure DeleteRange(AIndex: Integer; ACount: Integer);

Parameters

Name Type
AIndex Integer
ACount Integer

Remarks

Call this procedure and pass the index of the first stored pointer to delete and the total number of pointers you need to delete as the AIndex and ACount parameters, respectively. The DeleteRange procedure decrements the Count property value by the number of deleted pointers and shifts any remaining pointers at the end of the original list to the first deleted pointer’s position.

The “Argument out of range” exception occurs if the beginning or end of the specified range goes beyond the full range of pointers stored in the list.

Note

Call the Delete procedure instead if you need to delete only a single pointer in the list.

See Also