Navigation:  MCL Reference > List Functions >

RListItem( )

Print this Topic Previous pageReturn to chapter overviewNext page

The RListItem( ) function retrieves a text item from a string of items separated by ','. The function is almost identical to ListItem( ) except that RListItem( ) counts item numbers from right to left while ListItem( ) counts item number from left to right.

 

Syntax

RListItem(cValueExpr,nItemNumber,cSeparator,nItemsReturn)

 

Returns

Character

 

Examples

RListItem("12,41,8",1)

The above function returns the character "8".

 

RListItem(Column('Position'),1)

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

 

RListItem(HrSectionalTime( ),2,' ')

The above function returns time of the last section of a race in string format. 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

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

 

 


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