Topic Path: Symbol Reference > Classes > TIdThreadSafeCardinal Class > TIdThreadSafeCardinal Methods > Decrement Method > Decrement Method ()
ContentsIndexHome
PreviousUpNext
TIdThreadSafeCardinal.Decrement Method ()

Decreases the value for the thread-safe data type.

function Decrement: Cardinal; overload;

Cardinal - Value for the data type after decrementing.

Decrement is an overloaded Cardinal function used to decrease by 1 the value of the thread-safe Cardial data type. 

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 Cardinal 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.