Topic Path: Symbol Reference > Classes > TIdThreadSafeDouble Class > TIdThreadSafeDouble Methods > Subtract Method
ContentsIndexHome
PreviousUpNext
TIdThreadSafeDouble.Subtract Method

Subtracts an amount from the existing value for the thread-safe data type.

procedure Subtract(
    const AValue: Double
);
Parameters 
Description 
AValue 
Value to subtract from the existing value. 

Subtract is a procedure used to decrease the existing Value in the thread-safe data type by the amount indicated in AValue. 

Subtract calls Lock to enable resource protection for the thread-safe data type. 

Subtract decrements Value by the amount indicated in AValue. 

Subtract calls Unlock to disable resource protection for the thread-safe data type. 

Use Add to increment the thread-safe data type by a given amount.

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