sx_EvalNumeric

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_EvalNumeric

VB Declaration

Declare Function sx_EvalNumeric Lib "Apollo9.dll"

(ByVal cpExpression As String)

As Double

C Declaration

DOUBLE FAR PASCAL sx_EvalNumeric(BYTEP cpExpression);

Description

Evaluates an xBase expression that returns a numeric value and converts the result to a double precision number.

Parameters

cpExpression: An xBase expression that will evaluate as a number.

Return Value

The result of the expression is converted to a double precision number and passed back to the caller.

VB Example

' Let xBase engine perform the calculation on two numeric fields

iResult = sx_EvalNumeric( "TIME_OFF - TIME_ON" )

C Example

// crossfoot aged receivables

dTotal = sx_EvalNumeric("overdue + ancient + current");

See Also

sx_EvalLogical, sx_EvalString, sx_EvalTest