Difference between revisions of "EXPRCHECK()"
From Lianjapedia
m (Text replace - "Recital" to "Lianja") |
Yvonne.milne (Talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to check expression for errors | Function to check expression for errors | ||
− | |||
==Syntax== | ==Syntax== | ||
EXPRCHECK(<expC>) | EXPRCHECK(<expC>) | ||
− | |||
==See Also== | ==See Also== | ||
[[ERROR()]], [[MESSAGE()]] | [[ERROR()]], [[MESSAGE()]] | ||
− | |||
==Description== | ==Description== | ||
− | The function EXPRCHECK() evaluates the | + | 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 28: | Line 24: | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 13:27, 19 December 2012
Contents
Purpose
Function to check expression for errors
Syntax
EXPRCHECK(<expC>)
See Also
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