Skip to main content

TdxFastList.Remove(Pointer) Method

Removes the specified pointer from the ordered pointer list.

Declaration

function Remove(AItem: Pointer): Integer;

Parameters

Name Type
AItem Pointer

Returns

Type
Integer

Remarks

Call this function and pass a pointer as the AItem parameter to remove the matching stored pointer from the list. The Remove function returns -1 if the list contains no such pointer; otherwise, deletes the pointer and returns its index within the list.

Note

The Remove function calls the IndexOf function internally to search the specified pointer. Call the Delete procedure instead if you need to delete a stored pointer by its known position (that is, the index) within the list.

See Also