ISDATETIME()

From Recital Documentation Wiki
Revision as of 12:19, 30 March 2009 by Yvonnemilne (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

PURPOSE

Is the parameter a datetime


SYNONYM

None


SYNOPSIS

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


DESCRIPTION

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

Example Recital program:

m_values =  datetime()
m_isdatetime=check_datetime(m_values)
return

Example 'C' function:

#include "dbapi.h"
 
check_datetime()
{
    _retl( ISDATETIME(1));
}


SEE ALSO

_parts(), _retts(), DATE_DATETIME(), DATE_STOT(), DATE_TTOS()