ISNUM()
From Recital Documentation Wiki
Revision as of 00:04, 13 November 2009 by Barrymavin (Talk | contribs)
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