Difference between revisions of "EXPRCHECK()"

From Lianjapedia
Jump to: navigation, search
 
Line 9: Line 9:
  
 
==Description==
 
==Description==
The function EXPRCHECK() evaluates the Lianja/4GL expression specified in the string <expC>, and returns the appropriate Lianja error number, or 0 if the expression evaluated correctly.
+
The function EXPRCHECK() evaluates the expression specified in the string <expC>, and returns the appropriate error number, or 0 if the expression evaluated correctly.
  
 
==Example==
 
==Example==
Line 24: Line 24:
 
</code>
 
</code>
  
==Products==
 
Lianja Server, Lianja
 
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]

Latest revision as of 13:27, 19 December 2012

Purpose

Function to check expression for errors

Syntax

EXPRCHECK(<expC>)

See Also

ERROR(), MESSAGE()

Description

The function EXPRCHECK() evaluates the expression specified in the string <expC>, and returns the appropriate 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