EvalNumeric

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods >

EvalNumeric

Declaration

function EvalNumeric( sExpression: String ): Double;

Description

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

Parameters

sExpression: 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.

Delphi Example

// Perform the calculation on two numeric fields 

iResult := ApTbl.EvalNumeric( 'TIME_OFF - TIME_ON' );

See Also

EvalLogical, EvalString, EvalTest