Add a value to the second column of a conversion table. This function is similar to
TblWrite(cLookupTable,vKeyVal,Conv(cLookupTable,vKeyVal)+vValueToAdd,vReturnVal,lNotRecalcCond )
Please note that conversion table name is case-sensitive.
Syntax
TblAddVal(cLookupTable,vKeyVal,vValueToAdd,vReturnVal,lNotRecalcCond )
cLookupTable |
Name of conversion table |
vKeyVal |
KeyVal identifying record of conversion table to be written |
vValueToAdd |
Value to be added to the conversion table |
vReturnVal |
Return value. If vReturnVal is omitted, value of the argument vValueToAdd will be returned. If .T. is passed to vReturnVal, the final value of the RetVal (second) column of the conversion table will be returned. |
lNotRecalcCond |
If lNotrecalcCond is satisfied, TblAddVal( ) will not be re-excuted when you push the "Recalc" button |
Returns
Data type identical to that of vReturnVal
Example
TblAddVal('PlaceCount',HrStartID( ),iif(HrFP( )<=3,1,0),' ',.T.)
See Also
Page url: http://www.racematenet.com/english/help/index.html?tbladdval.htm