Internet Direct (Indy)
Home
PreviousUpNext
TIdThreadSafeInteger.Decrement Method ()

Decreases the value of thread-safe data type by 1.

Pascal
function Decrement: Integer; overload;

Integer - Value for the data type prior to decrementing.

Decrement is an Integer function used to decrease the Value of the thread-safe data type by 1. 

Decrement calls Lock to enable the resource protection capabilities of the object instance prior to updating the associated value for the data type. Decrement calls Unlock to disable resource protection when the value is successfully updated, or an exception is raised. 

Use Increment to increase by 1 the value of the thread-safe data type.

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.