Software Venture Consulting

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

Occurrences( text; casing)

Rate this function:  

RatingRatingRatingRatingRating
  Average rating: 4.0  (2 votes)
  Discuss this Custom Function

John Segers, noCompany
http://www.acme.com

it returns re-occurring strings either upper- or lowercase seperated by a space

Sample Input:
Occurrences
("vertegenwoordigers;0")

Sample Output:
e g o r



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

Description:

Occurrences (text ; casing) where text is the text to be tested for re-occurring letters. 0 counts re-occuring lowercast and 1 upper.


The function makes use of the ExactPatternCount function that I found here, and which I renamed EPC to return the letters that occur more than once in a given text. And because the orriginal EPC function it's case sensitive.

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:

/*
Thank you
Good job
More readable like:
*/
If(casing=0;
(
If(EPC(text;"a")>1;"a ")&
If(EPC(text ;"b")>1;"b ")&
If(EPC(text;"c")>1;"c ")&
If(EPC(text;"d")>1;"d ")&
If(EPC(text;"e")>1;"e ")&
If(EPC(text;"f")>1;"f ")&
If(EPC(text;"g")>1;"g ")&
If(EPC(text;"h")>1;"h ")&
If(EPC(text;"i")>1;"i ")&
If(EPC(text;"j")>1;"j ")&
If(EPC(text;"k")>1;"k ")&
If(EPC(text;"l")>1;"l ")&
If(EPC(text;"m")>1;"m ")&
If(EPC(text;"n")>1;"n ")&
If(EPC(text;"o")>1;"o ")&
If(EPC(text;"p")>1;"p ")&
If(EPC(text;"q")>1;"q ")&
If(EPC(text;"r")>1;"r ")&
If(EPC(text;"s")>1;"s ")&
If(EPC(text;"t")>1;"t ")&
If(EPC(text;"u")>1;"u ")&
If(EPC(text;"v")>1;"v ")&
If(EPC(text;"w")>1;"w ")&
If(EPC(text;"x")>1;"x ")&
If(EPC(text;"y")>1;"y ")&
If(EPC(text;"z")>1;"z ")
);

If(EPC(text;"A")>1;"A ")&
If(EPC(text;"B")>1;"B ")&
If(EPC(text;"C")>1;"C ")&
If(EPC(text;"D")>1;"D ")&
If(EPC(text;"E")>1;"E ")&
If(EPC(

Omelyan Burtnyk, Chicago, IL
August 11, 2018 1:33pm

Continue
If(EPC(text;"z")>1;"z ")
);

If(EPC(text;"A")>1;"A ")&
If(EPC(text;"B")>1;"B ")&
If(EPC(text;"C")>1;"C ")&
If(EPC(text;"D")>1;"D ")&
If(EPC(text;"E")>1;"E ")&
If(EPC(text;"F")>1;"F ")&
If(EPC(text;"G")>1;"G ")&
If(EPC(text;"H")>1;"H ")&
If(EPC(text;"I")>1;"I ")&
If(EPC(text;"J")>1;"J ")&
If(EPC(text;"K")>1;"K ")&
If(EPC(text;"L")>1;"L ")&
If(EPC(text;"M")>1;"M ")&
If(EPC(text;"N")>1;"N ")&
If(EPC(text;"O")>1;"O ")&
If(EPC(text;"P")>1;"P ")&
If(EPC(text;"Q")>1;"Q ")&
If(EPC(text;"R")>1;"R ")&
If(EPC(text;"S")>1;"S ")&
If(EPC(text;"T")>1;"T ")&
If(EPC(text;"U")>1;"U ")&
If(EPC(text;"V")>1;"V ")&
If(EPC(text;"W")>1;"W ")&
If(EPC(text;"X")>1;"X ")&
If(EPC(text;"Y")>1;"Y ")&
If(EPC(text;"Z")>1;"Z ")
)
/*
Author: of ExactPatternCount ( text ; searchString ) Richard Dyce
Source: https://www.briandunning.com/cf/2075
*/

Omelyan Burtnyk, Chicago, IL
August 11, 2018 1:37pm

I agree, its much more readable. Thanks for taking time to comment. And thank you for adding the source. I'll addapt the changes and add your name.

John Segers, Tilburg, netherland
August 12, 2018 1:04pm

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 + 6 =
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. ChiSquare3x2 ( param ; param ; param ; param )
  (Tue, Aug 14, 6:33am)
2. ReverseByteOrder ( bytes )
  (Thu, Aug 09, 12:06pm)
3. BytesToDec ( hex )
  (Thu, Aug 09, 11:47am)
4. GetAsHexBytes ( number ; bytes )
  (Thu, Aug 09, 10:50am)
5. ValCorrelationCoeff ( XValueList; YValueList; Xmean; Ymean; XStdDev; YStdDev )
  (Wed, Aug 08, 4:17pm)
6. ValLeastSquaresSlope ( XValueList; YValueList; Xmean; Ymean )
  (Wed, Aug 08, 4:10pm)
7. ValueMath ( List1 ; List2 ; operation )
  (Wed, Aug 08, 4:05pm)
8. GetExtension ( File )
  (Tue, Aug 07, 10:22am)

RSS Feed of Custom Functions