<< Click to Display Table of Contents >> Navigation: Apollo API Listing > sx_EvalNumeric |
Declare Function sx_EvalNumeric Lib "Apollo9.dll"
(ByVal cpExpression As String)
As Double
DOUBLE FAR PASCAL sx_EvalNumeric(BYTEP cpExpression);
Evaluates an xBase expression that returns a numeric value and converts the result to a double precision number.
cpExpression: An xBase expression that will evaluate as a number.
The result of the expression is converted to a double precision number and passed back to the caller.
' Let xBase engine perform the calculation on two numeric fields
iResult = sx_EvalNumeric( "TIME_OFF - TIME_ON" )
// crossfoot aged receivables
dTotal = sx_EvalNumeric("overdue + ancient + current");