Navigation:  MCL Reference > List Functions >

RListVal( )

Print this Topic Previous pageReturn to chapter overviewNext page

The RListVal( ) function retrieves a numeric value from string of numbers separated by ','. The function is almost identical to the ListVal( ) function except that RListVal( ) counts item numbers from right to left while ListVal( ) counts item numbers from left to right.

 

Syntax

RListVal(cMCLExpr,nItemNumber,cSeparator,nItemsReturn)

 

Returns

Numeric

 

Examples

RListVal("12,4,8",1)

The above function returns 8.

 

RListVal(Column('WinTk'),1)

The above function returns the last number item in the string in column 'WinTk'.

 

RListVal(HrSectionalTime( ),1,' ')

The above function returns time of the last section of a race. For example, 23.9 will be returned if HrSectionalTime( ) returns "14.0 22.3 23.6 23.9". Please note that the separator in the string is a space instead of a ",".

 

See Also

ListVal( ), ListItem( ), RlistItem( ), HrSumCount( ), JrSumCount( ), SrSumCount( ), HrOdds( ), JrOdds( ), SrOdds( ), Column( )

 

 


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