ISCURRENCY()

From Recital Documentation Wiki
Jump to: navigation, search

PURPOSE

Is the parameter a currency data type


SYNONYM

None


SYNOPSIS

#include "dbapi.h"
 
int	ISCURRENCY(order)
 
<input parameters>
int	order;		/* Placement in actual parameter list		*/
 
<output parameters>
none


DESCRIPTION

The function checks if the specified parameter is a currency data type. It returns 1 if true, or 0 if false. The order specifies the actual placement in the parameter list.


EXAMPLE

The following example returns .T. if the first parameter passed is a currency value, or .F. otherwise.

Example Recital program:

m_values =  $5
m_iscurr=check_curr(m_values)
return

Example 'C' function:

#include "dbapi.h"
 
check_curr()
{
    _retl(ISCURRENCY(1));
}


SEE ALSO

_parys(), _retys(), CURR_STOY(), CURR_YTOS()