Software Venture Consulting
ToMarket

FileMaker Pro downloads & Resources
FileMaker Custom Functions
FileMaker Web Viewer Examples
FileMaker Pro & Lasso Consulting
Training
FileMaker Books
FileMaker Articles
FileMaker Error Reference

Free Web Tools
Free FileMaker Tools

Personal Pages
Videos
Adventures
Links

Shopping Cart
Shopping Cart

Search:

Free Newsletter
Signup


Contact


Privacy Policy



FileMaker is a registered trademark of FileMaker, Inc. in the U.S. and other countries.

 FileMaker Pro Custom Functions

List  |  Show Random  |  Upload  |  Add This to Your Site

joinRepeatingVariable ( variableName ; delimiter ; startIndex ; endIndex )

Rate this function:  

RatingRatingRatingRatingRating
  Average rating: 4.2  (13 votes)
  Discuss this Custom Function

Sam Barnum, 360Works
http://www.360works.com

Join / concatenate a repeating variable / array using a delimiter character

Sample Input:
joinRepeatingVariable("$$foo" ; ", " ; "" ; "")
Sample Output:
FOO, BAR, BAZ


 Then copy & paste into FileMaker Advanced's Edit Custom Function window.

Click here to copy To Clip Manager if you have myFMbutler's Clip Manager installed

Description:

Join a repeating variable / array with a delimiter, using recursion.

If endIndex is not specified or is negative, the recursion will exit on the first empty element in the array. Otherwise, empty elements will be included in the results until endIndex is reached.

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

This is my Custom Function and I want to edit it

Discuss:

Also works for repeating fields!

Bruce Robertson, Redmond WA
March 14, 2011 5:00pm

The CF assumes that N for $var[N] is positive. Actually (unlike repeating fields) it can be zero; or negative; though it must always be an integer. In practice I suppose negative or zero values for N are rare.

Bruce Robertson, Redmond WA
March 14, 2011 5:06pm

Interesting point, Bruce. If this function were to support negative indices, the empty-arg approach would require a way to iterate backwards to find the first non-empty value. Currently if no startIndex is specified 1 is assumed.

Sam Barnum, San Francisco
March 14, 2011 5:13pm

Perfect. Thank you Sam!

David Walton, Wellfleet, MA
June 27, 2011 11:00am

Make a comment about this Custom Function (please try to keep it brief & to the point). Anyone can post:

Your Name:
City/Location:
Comment:
characters left. If you paste in more than 1500 characters, it will be truncated. Discuss the function - advertisements and other useless posts will be deleted.
Answer 9 + 5 =
Search for Custom Functions:

Custom Functions Widget
Download the Custom Function Dashboard Widget for OS X
Keep all the latest Custom Functions right at your fingertips!

Newest Custom Functions:

1. isLeapYear ( _year )
  (Thu, Jul 17, 8:29am)
2. AgeCalculation( Date( 4 ; 12 ; 1980 ) ;
  (Thu, Jul 17, 8:10am)
3. ntBitwiseOperation ( ope ; base ; value1 ; value2 )
  (Wed, Jul 16, 11:22pm)
4. ntRepeat( times ; statements ; resultValueName )
  (Mon, Jul 07, 8:51pm)
5. ฺBookRentalCal ( BookingStart; 1.5)
  (Sat, Jul 05, 8:25pm)
6. GetThailandSummerTime ( Start ; End )
  (Sat, Jul 05, 7:47pm)
7. UnionList ( ListA ; ListB ; leaveBlank )
  (Wed, Jul 02, 2:06pm)
8. IsUUID( Self )
  (Fri, Jun 27, 4:49pm)

RSS Feed of Custom Functions