Difference between revisions of "ISNUM()"
From Recital Documentation Wiki
		
		
		
Yvonnemilne  (Talk | contribs)  | 
				Barrymavin  (Talk | contribs)   (→EXAMPLE)  | 
				||
| Line 44: | Line 44: | ||
check_num()  | check_num()  | ||
{  | {  | ||
| − |      _retl( ISNUM));  | + |      _retl( ISNUM(1) );  | 
}  | }  | ||
</code>  | </code>  | ||
| − | |||
==SEE ALSO==  | ==SEE ALSO==  | ||
Latest revision as of 00:04, 13 November 2009
PURPOSE
Is the parameter a numeric
SYNONYM
None
SYNOPSIS
#include "dbapi.h" int ISNUM(order) <input parameters> int order; /* Placement in actual parameter list */ <output parameters> none
DESCRIPTION
The function checks if the specified parameter is a numeric value. It returns 1 if true, or 0 if false. The order specifies the actual placements in the parameter list.
EXAMPLE
The following example returns .T. if the first parameter passed is a numeric value, or .F. otherwise.
Example Recital program:
m_value=534 m_isnum=check_num(m_value) return
Example 'C' function:
#include "dbapi.h" check_num() { _retl( ISNUM(1) ); }
SEE ALSO
_parinfo(), _parinfo(), _parnd(), _parni(), parnl(), _retnd(), retni(), retl(), PCOUNT