System.Generics.Collections.TList.Extract

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Extract(const Value: T): T; inline;

C++

T __fastcall Extract(const T Value);

Properties

Type Visibility Source Unit Parent
function public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TList

Description

Removes and returns a list entry.

Extract removes the entry Value from the list, returning this value. If Value is not in the list, it returns the default value of its type T.

An OnNotify event occurs indicating that an entry was removed from the list. Extract is similar to Remove except for the event code indicating that an element was extracted rather than removed and is provided so items may be removed without freeing.

See Also

Code Examples