Navigation:  MCL Reference > Track Work Information >

HrActivity( ), JrActivity( ), SrActivity( )

Print this Topic Previous pageReturn to chapter overviewNext page

Activities, including training and starts, of a horse in past N days. User comments for the activities will be displayed as well.

 

 

Syntax 1

HrActivity(nDays,cTypeList,cChrForNA,cFlag,cSeparator,nBackRaces,'fCondition',cDefaultVal,cIncluding)

JrActivity(nDays,cTypeList,cChrForNA,cFlag,cSeparator,nBackRaces,'fCondition',cDefaultVal,cIncluding)

SrActivity(nDays,cTypeList,cChrForNA,cFlag,cSeparator,nBackRaces,'fCondition',cDefaultVal,cIncluding)

 

Syntax 2

HrActivity('DayX-DayY',cTypeList,cChrForNA,cFlag,cSeparator,nBackRaces,'fCondition',cDefaultVal,cIncluding)

JrActivity('DayX-DayY',cTypeList,cChrForNA,cFlag,cSeparator,nBackRaces,'fCondition',cDefaultVal,cIncluding)

SrActivity('DayX-DayY',cTypeList,cChrForNA,cFlag,cSeparator,nBackRaces,'fCondition',cDefaultVal,cIncluding)

 

Arguments

Argument

Description

nDays

(Syntax 1)

Number of days, e.g., 60.

If nDays is missing (or equals 0), the activities since last start will be returned.

'DayX-DayY'

(Syntax 2)

Specifies a period from day X to day Y, counting back from the underlying race. For example '8-14' mean from day 8 to day 14 back from the underlying race.

cTypeList

A character string with list of activity types inside separated by ','.

Possible types:

 

RA   -     Race

BT   -     Barrier Trial

SW  -     Swim

JI    -     Inner AW/Eq Jog

JO   -     Outer AW/Eq Jog

JA   -     Aroe Jog

JT   -     Turf Jog

 

GL   -     Any type of galloping

GG   -     Turf track galloping

AG   -     All weather track galloping

RG   -     River side galloping

cChrForNA

Character which stands for no activity. Default to '-'. Pass .Null. into this argument to skip the lines without activities.

cFlag

Characters for specifying date format and suppressing user comments

N      shows the day number from underlying start

D      shows full date

S (or missing)  dd/mm, e.g., 3rd of November will be shown as 03/11

U      suppress user comments for the activity

cSeparator

Activity separator which is default to carriage return (Chr(13)). If you want to display all activities separated by a semicolon in the same line, you may pass '; ' into this argument.

nBackRaces

nBackRaces specifies activities before which start will be shown. For example, if nBackRaces=1 and nDays=30, the activities within 30 days before the last start (not current start) will be shown. nBackBaces is default to 0, i.e., the current start.

'fCondition'

See 'MCL Condition' under 'Arguments of MCL functions' section

cDefaultVal

See 'The DefaultVal Argument' under 'Arguments of MCL functions' section

cIncluding

See 'The cIncluding Argument' under 'Arguments of MCL functions' section

 

Returns

Character (variable length)

In views, normally, Multiline-Text type will be used for the column.

 

Remark

Under normal circumstances, you may need to push the [Recalc] button to refresh the data of the column (see Cache for View Data for details).
By default, user comments are displayed at the right hand side of the activity descriptions. You may pass the flag "U" into the 4th argument (cFlag) to suppress the user comments.

 

Examples

Track work activities since last start:

HrActivity( )

 

Show jogging and swims since last start:

HrActivity( ,'JI,JO,JA,JT,SW')

 

Show galloping and barrier trials only in last 30 days. Use ' | ' (space, vertical bar, space) as separator between trials instead of putting the trials in separate lines.

HrActivity(30,'GL,BT',,,' | ')

 

Number of barrier trials during the week before last week:

HrActivity('8-14','BT')

 

See Also

HrTwCount( ), JrTwCount( ), SrTwCount( ) | HrABTCount( ), JrABTCount( ), SrABTCount( ) | HrGBTCount( ), JrGBTCount( ), SrGBTCount( ) | Occurs( )

 

 


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