Public Function PlusEqualFn( _ ByRef rLeft As Variant _ , ByVal vRight As Variant _ ) As Variant
Assuming Dim dblValue As Double dblValue = 2.5 for example PlusEqualFn(dblValue, 2) = 4.5 leaves dblValue = 4.5See also:
PlusEqual Subroutine Addit Function MinusEqualFn Function TimesEqualFn Function DivideEqualFn FunctionDefinition (Visual Basic):
PlusEqualFn = rLeft + vRight rLeft = rLeft + vRightDefinition (C):
#define PlusEqualFn(rLeft, vRight) (rLeft += vRight)rLeft: Numeric or date value to which vRight is added. The result of the addition 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.