GetRepetition()

 <  Day Day Up  >  

GetRepetition()

Category: Repeating

Syntax: GetRepetition ( repeatingField ; repetitionNumber )

Parameters: repeatingField ”any repeating field, or an expression that returns a reference to a repeating field; repetitionNumber ”a positive integer representing the repetition number to retrieve.

Description: Returns the contents of the specified repetition of a repeating field.

Examples:

 

 GetRepetition (RepPercentage ; 2) 

Returns the contents of the second repetition of the RepPercentage field.

If you had a repeating text field called QuoteOfTheDay that contained 20 repetitions, you could extract a random quote using the following formula:

 

 Let (repNumber = Ceiling (Random * 20) ;    GetRepetition (QuoteOfTheDay ; repNumber) ) 

Comments:

A new shorthand notation can be used in place of the GetRepetition() function. The repetition number can be placed in square brackets after the name of the repeating field. For instance, GetRepetition (myField ; 6) is the same as myField[6] .

 <  Day Day Up  >  


QUE CORPORATION - Using Filemaker pro X
QUE CORPORATION - Using Filemaker pro X
ISBN: N/A
EAN: N/A
Year: 2003
Pages: 494

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net