Navigation:  MCL Reference > List Functions >

ListItem( )

Print this Topic Previous pageReturn to chapter overviewNext page

The ListItem( ) function retrieves a text item from a string of items separated by ','.

 

Syntax

ListItem(cValueExpr,nItemNumber,cSeparator,nItemsReturn)

 

Returns

Character

 

Examples

ListItem("12,41,8",2)

The above function returns characters "41".

 

ListItem(Column('Position'),1)

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

 

ListItem(HrOdds( ),2,' ')

The above function returns odds 5-minute before race of the horse by retrieving the 2nd item from an odds string. If HrOdds( ) returns "5.8 6.4 7.1", "6.4" is returned by the above function. Please note that the separator in an odds string is a space instead of a ",".

 

See Also

HrSumCount( ), JrSumCount( ), SrSumCount( ), HrOdds( ), JrOdds( ), SrOdds( ), Column( )

 

 


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