Internet Direct (Indy)
Home
PreviousUpNext
TIdThreadSafeList.Pop Method

Extracts the object instance from the list found at its highest index position.

Pascal
function Pop: TIdBaseObject;

TObject - Object extracted from the highest position in the list.

Pop is a TObject function used to extract the TObject instance from the list found at its highest index position. 

Pop calls LockList to enable resource protection for the thread-safe list prior to accessing TObject instances in the list. 

Pop assigns the TObject instance at the highest ordinal position in the list to the return value, and deletes the item from the list. If the list contains 0 (zero) items, the return value for the method is set to Nil. 

Pop calls UnlockList to disable resource protection for the thread-safe list prior after accessing TObject instances in the list. 

Use Pull to extract an object instance from the lowest ordinal position in the list.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.