A quoted Xbasic statement.
The context in which the expression should be evaluated. This can be a list of tables in a CR-LF delimited list. It can also be the name of an open form (suffixed by ".this"), which would evaluate the expression in the context of the form.
Returns .t. if Expression is valid, otherwise .f.
Return True if the expression can be parsed (expression is properly formed), session context is optional.
EVAL_VALID() evaluates Expression and returns .T. (TRUE), if Expression is valid (can be interpreted as Xbasic code), or .F. (FALSE) if the Expression is invalid. This function is useful when the expression to be evaluated is itself constructed by another expression.
dim varA as N dim varB as N varA = 1 varB = 2 dim theExpression as C theExpression = "varA + varB" ? eval_valid("1 + 2") = .T. ? eval_valid("varA + varB") = .T. ? eval_valid(theExpression) = .T. ? eval_valid("date() ") = .T. ' daaate() is not a function ? eval_valid("daaate() ") = .F.
For more examples on how the Context parameter is used, see EVAL().