Difference between revisions of "EXPRCHECK()"

From Recital Documentation Wiki
Jump to: navigation, search
 
(Class)
Line 1: Line 1:
==Class==
 
Expressions and Type Conversion
 
  
  

Revision as of 15:10, 27 October 2009


Purpose

Function to check expression for errors


Syntax

EXPRCHECK(<expC>)


See Also

ERROR(), MESSAGE()


Description

The function EXPRCHECK() evaluates the Recital/4GL expression specified in the string <expC>, and returns the appropriate Recital error number, or 0 if the expression evaluated correctly.


Example

function CheckExpr
parameter querystring
if exprcheck(querystring) > 0
    dialog box "Error in Query String: " + message()
    m_ret = .F.
else
    m_ret = .T.
endif
return m_ret


Products

Recital Database Server, Recital Mirage Server, Recital Terminal Developer