Topic Path: Symbol Reference > Classes > TIdThreadSafeStringList Class > TIdThreadSafeStringList Methods > Remove Method
TIdThreadSafeStringList.Remove Method

Deletes a string value from the items in the thread-safe data type.

procedure Remove(
    const AItem: string
String value to remove from the data type. 

Remove is a procedure used to delete the String value in AItem from the Value for the thread-safe data type. 

Remove calls Lock to enable resource protection for Value prior to searching Value using it's IndexOf method. When AItems exists in Value, it is deleted. 

Remove calls Unlock to disable resource protection for Value when AItem has been deleted, or an exception is raised. 

Use Add to add a string value to the thread-safe data type. 

Use AddObject to add a string with an associated TObject instance to the thread-safe data type. 

Use Clear to delete all items in the thread-safe data type.

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