Internet Direct (Indy)
Home
PreviousUpNext
TIdThreadSafeDouble.Subtract Method

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

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

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.