PM_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.

Const.PM_DataSourceHitCount

Applications and the framework send the Const.PM_DataSourceHitCount message to a data source to get the number of records that match a certain query condition (where-statement).

Parameters

Name Description
nWhat = wParam Standard method parameter. Possible values are Const.METHOD_Inquire, Const.METHOD_Execute, Const.METHOD_GetType
sWhere = SalNumberToHString( lParam ) Optional where statement. If no where statement is supplied, the current where statement is used.

Returns

When nWhat = Const.METHOD_Inquire, TRUE is returned.

When nWhat = Const.METHOD_Execute, the return value is the number of records matching the query condition.

Comments

The Const.PM_DataSourceHitCount message is the message sent by the query dialog when the user presses the Count Hits button.