DataSourceHitCount

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalNumber DataSourceHitCount( SalNumber nWhat, SalNumber nParam )

Applications and the framework call the DataSourceHitCount to count how many records match a specified query condition (where-statement)

Parameters

Name Description
SalNumber nWhat Standard method parameter. Possible values are Const.METHOD_Inquire, Const.METHOD_Execute, Const.METHOD_GetType.
SalNumber nParam String handle of where statement to use when counting objects.

Returns

When nWhat = Const.METHOD_Inquire: the return value is TRUE.

When nWhat = Const.METHOD_Execute: the return value is the number of records matching the where statement.

When nWhat = Const.METHOD_GetType, the return value is Const.CHILDTYPE_SourceMethod.