<< Click to Display Table of Contents >> Navigation: Apollo API Listing > sx_EvalLogical |
Declare Function sx_EvalLogical Lib "Apollo9.dll"
(ByVal cpExpression As String)
As Integer
BOOL FAR PASCAL sx_EvalLogical(BYTEP cpExpression);
Evaluates a logical xBase expression and retrieves a True or False value depending upon the outcome.
cpExpression: An xBase expression that will evaluate as a logical value passed as a literal string or as the contents of a string variable.
True if the expression evaluates as True, and False if not. Note that False will also be returned if the expression is invalid. Always use sx_EvalTest to verify an expression that is solicited from a user before actually performing the evaluation.
' set radio button for north american customers
NAstat.Value = -sx_EvalLogical("upper(trim(country)) = 'U.S.A.'
Ä .or. upper(trim(country)) = 'CANADA'")
// set check box value
m_married->SetNumProperty("Value", sx_EvalLogical("married"));