Difference between revisions of "ISOBJECT()"

From Lianjapedia
Jump to: navigation, search
 
m (1 revision)
(No difference)

Revision as of 06:34, 11 April 2013

PURPOSE

Is the parameter an object

SYNONYM

None

SYNOPSIS

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

DESCRIPTION

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

Example Lianja script:

m_values = NEWOBJECT('MyClass")
m_isobj=check_obj(m_values)
return

Example 'C' function:

#include "lianjaapi.h"
 
check_obj()
{
    _retl(ISOBJECT(1));
}

SEE ALSO

_paro(), _reto()