Public Function MinusEqualFn( _ ByRef rLeft As Variant _ , ByVal vRight As Variant _ ) As Variant
Assuming Dim dblValue As Double dblValue = 2.5 for example MinusEqualFn(dblValue, 2) = .5 leaves dblValue = .5See also:
MinusEqual Subroutine Subtract Function PlusEqualFn Function TimesEqualFn Function DivideEqualFn FunctionDefinition (Visual Basic):
MinusEqualFn = rLeft - vRight rLeft = rLeft - vRightDefinition (C):
#define MinusEqualFn(rLeft, vRight) (rLeft -= vRight)rLeft: Numeric or date value from which vRight is subtracted. The result of the subtraction is assigned back into the variable passed via rLeft (unless that value happens to be passed-by-value) and the result is also returned.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.