TdxFastList.Delete(Integer) Method
Deletes the specified stored pointer.
Declaration
procedure Delete(AIndex: Integer);
Parameters
Name | Type |
---|---|
AIndex | Integer |
Remarks
Call this procedure and pass an index within the list as the AIndex parameter to delete the corresponding pointer. The Delete procedure decrements the Count property value by one and shifts any remaining pointers at the end of the original list by one position to the list’s beginning.
The “List index out of bounds” exception occurs if the AIndex parameter value is:
Equal to or greater than the Count property value.
Negative.
Note
Call the DeleteRange procedure instead if you need to delete multiple stored pointers.
See Also