Daylight v4.9
Release Date: 1 February 2008

Name

dt_mer_getnitems - retrieve the number of dataitems of given datatype

Generic Prototype

dt_mer_getnitems(dt_Handle, dt_Handle) => dt_Integer

C Prototype

#include "dt_merlin.h"

dt_Integer dt_mer_getnitems(dt_Handle pool, dt_Handle type)

FORTRAN Prototype

include 'dt_f_merlin.inc'

integer*4 dt_f_mer_getnitems(pool, type)

integer*4 pool
integer*4 type

Description

If 'type' is a datatype, counts the number of dataitems in the pool that have the specified datatype. If 'type' is a fieldtype, returns the number of datafields in the pool that have that fieldtype. Note that some merlin server implementations can not report dataitems and datafields separately. In these cases, the number of dataitems will always be reported).

Return Value

Returns the count of items For all other objects, this property is defined as -1.

Related Topics

dt_mer_alloc_column(3) dt_mer_cellvalue(3) dt_mer_defaultsort(3) dt_mer_funcapplies(3) dt_mer_function(3) dt_mer_getdata(3) dt_mer_getroot(3) dt_mer_server(3) dt_mer_sortapplies(3)