Navigation:  MCL Reference > Statistics in a Race >

RunnersCnt( )

Print this Topic Previous pageReturn to chapter overviewNext page

The RunnersCnt( ) function returns the number of runners that meets a particular condition in a race.

 

Syntax

RunnersCnt('eValueExpr',cRaceID,'fCondition')

 

Argument

Description

Example

'lCountIf'

Datum the count of which is to be found.
lCountIf can be of any data type. If lCountIf is of logical type, all true (.T.) values will be counted. For any other types, record will be counted only if lCountIf returns a non-null value.

'HrBodyweight( )'

cRaceID

Race ID (default to underlying race). Normally, this is a string returned by the functions HrRaceID( ), JrRaceID( ) and SrRaceID( ).

'17222'

'fCondition'

Logical expression to filter out a particular set of runners in the race.

'HrFP( )<=3'

 

Returns

The function returns a numeric value.

 

Examples

RunnersCnt( )

Returns the number of runners in the underlying race.

 

RunnersCnt('17222')

Returns number of runners in the race of ID '17222', i.e., the 222nd race of season 97-98.

 

RunnersCnt(,'HrRating( )>95')

Returns number of runners of rating greater than 95 in the underlying race.

 

RunnersCnt('17222','HrRating( )>95')

Returns number of runners of rating greater than 95 in the race of ID '17222'

i.e., the 222nd race of season 97-98.

 

 


Page url: http://www.racematenet.com/english/help/index.html?runnerscnt.htm