Difference between revisions of "FUNCTION EXISTS()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
Line 6: | Line 6: | ||
==See Also== | ==See Also== | ||
− | [[CLASS EXISTS()]], [[ENDFUNC]], [[FUNCTION]], [[ISSET()]], [[ | + | [[CLASS EXISTS()]], [[ENDFUNC]], [[FUNCTION]], [[ISSET()]], [[PEXIST()]], [[PROCEDURE]], [[RETURN]], [[SET LIBRARY]], [[SET PROCEDURE]], [[TYPE()]], [[UNSET()]], [[VARTYPE()]] |
==Description== | ==Description== |
Revision as of 05:40, 19 March 2013
Contents
Purpose
Function to check whether a function has been declared
Syntax
FUNCTION_EXISTS(<expC>)
See Also
CLASS EXISTS(), ENDFUNC, FUNCTION, ISSET(), PEXIST(), PROCEDURE, RETURN, SET LIBRARY, SET PROCEDURE, TYPE(), UNSET(), VARTYPE()
Description
The FUNCTION_EXISTS() function can be used to check whether a function has been declared. FUNCTION_EXISTS() will return .T. (true) if the function named <expC> has been declared and .F. (false) if it has not been declared. Functions are declared using the FUNCTION or PROCEDURE commands.
Example
function add18 parameter dob return gomonth(dob,18*12) if function_exists('add18') attainmajority = add18(date()) endif