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

Backwards( _Field )

Rate this function:  

RatingRatingRatingRatingRating
  Average rating: 4.5  (30 votes)
  Discuss this Custom Function

Alexander Baier, FM Tutorial
http://www.fm-tutorial.de

return a string backwards (mirror writing)

Sample Input:
Backwards ( "Hello" )

Backwards ( "12345" )
Sample Output:
olleH

54321


 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:

This recursive function returns any string backwards.

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:

5 most recent comments | Show all 6 comments

- Calculations of checksums

- mathematical operations or mathematical curiosities

e.g (

731 - 137 = 594 + 495 = 1089

this algorithm is valid for three-digit numbers (n>m>p))


or simply for mischief :-)

Alexander Baier, Germany
May 23, 2013 11:24pm

concise mode:

If ( Length ( _Field ) ; Backwards ( Right ( _Field ; Length ( _Field ) - 1 ) ) ) & Left ( _Field ; 1 )

Daniele Raybaudi, Rome
May 27, 2013 10:49am

Don't you mean "feihcsim"? :)

Vinny, Somerset, NJ USA
May 31, 2013 8:29am

Beautiful function very usefull to me. I am not at all stupid, but I could never make this one myself. Can somone please explain to me why it's working?

THX a lot

John Segers, Tilburg, Netherlands
June 10, 2015 6:20am

Just found this function and it was exactly what I was looking for. As far as 'why'? It worked wonders for my need to reverse a string of characters so that I could feed that into the Code() function (which reverses the characters itself in its output). I needed those code points to be in the proper word order, not the reversed Code() output order.

It works by passing in an ever diminishing right-hand list of characters to itself, and then returns the left hand side of things once it reaches the end.

So say we called Backwards ("abc").

1) Backwards ("abc") => _field = "abc"
1A) Length > 0, so call Backwards ("bc") & "a"

2) Backwards ("bc") => _field = "bc"
2A) Length > 0, so call Backwards ("c") & "b"

3) Backwards ("c") => _field = "c"
3A) Length > 0, so call Backwards ("") & "c"

4) Backwards ("") => _field = ""
4A) Length NOT >0, so return Left("") (which is empty)

4A returns ("") to 3A => "" & "c" = "c"
...which returns "c" to 2A => "c" & "b" = "cb"
...which returns "cb" to 1A => "cb" & "a" = "cba"

I think the calculation could be modified a bit, but haven't tested anything. It works as it is. It isn't Tail recursion, so you wouldn't want to pass strings longer than 10,000 characters to it.

Justin, Salem, Oregon
June 17, 2015 12:31pm

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 6 + 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. NumberToHexadecimal(NumberValue)
  (Fri, Dec 08, 8:54am)
2. Get_BaseTable
  (Thu, Dec 07, 4:27pm)
3. JSONCreateVarsFromKeys ( json ; namespace )
  (Wed, Dec 06, 8:21pm)
4. GetTableNzme ( field )
  (Tue, Dec 05, 9:16pm)
5. TimeFormatAsText ( theTime )
  (Mon, Nov 13, 1:59pm)
6. ParseWebValueList( text )
  (Thu, Nov 02, 9:52am)
7. SVG_HTML_to_Text ( _svg_text ; _orig_text ;
  (Wed, Oct 25, 4:17am)
8. decFromHex ( hexValue )
  (Mon, Oct 16, 12:34pm)

RSS Feed of Custom Functions