Topic Path: Symbol Reference > Classes > TIdThreadSafeList Class > TIdThreadSafeList Methods > Pop Method
ContentsIndexHome
PreviousUpNext
TIdThreadSafeList.Pop Method

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

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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.