<< Click to Display Table of Contents >> Navigation: Apollo API Listing > sx_EvalString |
Declare Function sx_EvalString Lib "Apollo9.dll"
(ByVal cpBaseExpr As String)
As String
LONG FAR PASCAL sx_EvalString
(BYTEP cpExpression);
Evaluates an xBase expression and retrieves the result as a string. The result of the xBase expression must be of type character.
cpBaseExpr: An xBase expression that will evaluate as a string value passed as a literal string or as the contents of a string variable.
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" )
// set description
m_desc->SetStrProperty("Text", sx_EvalString("serial->product + prod->desc"));