sx_EvalString

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_EvalString

VB Declaration

Declare Function sx_EvalString Lib "Apollo9.dll"

(ByVal cpBaseExpr As String)

As String

C Declaration

LONG FAR PASCAL sx_EvalString

(BYTEP cpExpression);

Description

Evaluates an xBase expression and retrieves the result as a string. The result of the xBase expression must be of type character.

Parameters

cpBaseExpr: An xBase expression that will evaluate as a string value passed as a literal string or as the contents of a string variable.

Return Value

The expression is evaluated and the result returned as a string.

VB Example

' xBase engine can display related data with a single line of code

sResult = sx_EvalString( "SERIAL->PROD + ' ' + PROD->DESC" )

C Example

// set description

m_desc->SetStrProperty("Text", sx_EvalString("serial->product + prod->desc"));

See Also

sx_EvalLogical, sx_EvalNumeric, sx_EvalTest