ISDATE()

From Lianjapedia
Jump to: navigation, search

PURPOSE

Is the parameter a date

SYNONYM

None

SYNOPSIS

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

DESCRIPTION

The function checks if the specified parameter is a date. 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 date, or .F. otherwise.

Example Lianja script:

m_values =  date()
m_isdater=check_date(m_values)
return

Example 'C' function:

#include "lianja_api.h"
 
check_date()
{
    _retl( ISDATE(1));
}

SEE ALSO

_parinfa(), _parinfo(), _pards(), _retds(), DATE_CDOW(), DATE_CMONTH(), DATE_DAY(), DATE_DOW(), DATE_DTOC(), DATE_DTOS(), DATE_MONTH(), DATE_YEAR()