Navigation:  MCL Reference > Statistics on Past Records >

HrStatList( ), JrStatList( ), SrStatList( )

Print this Topic Previous pageReturn to chapter overviewNext page

The functions return sum, maximum, minimum, and count of a racing datum in the past records. The 2 figures are returned in a single string separated with a ','. For example, a returned value "1324,16,8,11" means that 1324 is got by summing up 11 races and the maximum and minimum value in these 11 races are 16 and 8 respectively.


Using these functions, you can get sum, maximum, minimum, count, and average (sum/count) by only scanning the database once. It is much faster than applying HrSum( ), HrMaximum, HrMinimum, HrCount( ), and HrAverage( ) in

separate columns.


Use the ListVal( ) function to retrieve a specific item in the list.









Datum the statistics of which is to be found.
Data type of expression: Any

'HrDvdWin( )'


Number of latest races, counting back from the underlying race, to be averaged. The races must be meeting the condition specified by 'fCondition'.
If nRaces is omitted, all races meeting 'fCondition' will be included.
If total number of races meeting 'fCondition' is smaller than nRaces, the function will perform calculations on only the available races. You may use the HrCount( ) function to check how many races have been counted.



If argument 'fCondition' is passed, the races (nRaces) will only be selected from those meeting 'fCondition'. The 'fCondition' argument is composed of a For clause and a While clause.
A For clause causes the function to act on each record that meets the specified logical condition.
A While clause causes the function to stop action once the logical expression evaluates to false.
Both For and While clauses are optional.

'For HrFP( )=1 While

HrDate( )>Date(1999,9,1)'


Default value returned when no race satisfying the specified condition can be found. The data type of this value must be identical to that of normal return value.


When applying the function to past records, by default, races in the underlying meeting are not included. You may use this argument to change the scope. See the following page for details: The cIncluding Argument.







Page url: