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

FormatAsFileName ( text ; extension ; lengthLimit )

Rate this function:  

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

Jonathan Mickelson, Thought Development Corp.
http://thought-dev.com

Simplifies concatenation of a data into a suitable length OS filename.

Sample Input:
FormatAsFileName ( "Usr_" & Last_Name_Field ; "mpg" ; 15 )
Sample Output:
Usr_mickel~.mpg


 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:

Description:

This function simplifies the formatting of the value of text into a standard format for use as a filename by an operating system. Its parameters also include the ability to define a filename extension and a character limit for the concatenation. All parameters but text may be null ("").

NOTE: The truncation character may be changed or made null ("") in the variable definitions within the function source.
----

Parameters:
text - any text expression or text field

extension - any text expression or text field representing an optional file extension. The extension parameter does not require a period (.) to be supplied and automatically adds one to the beginning of the extension, if an extension is supplied and the leftmost character is not already a period (.)

lengthLimit - any numeric expression, or field containing a number, which represents the maximum number of characters the resulting filename may contain, including any defined the extension parameter. For any positive numeric value, the function truncates any necessary characters from the right of the text parameter, adding a special truncation character (~ by default) before any defined extension. A zero or null ("") value will bypass this feature.

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:

There are no comments yet. Be the first to post 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 3 + 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. ProperAllWords ( text )
  (Thu, Dec 14, 5:19pm)
2. MatchExist ( SourceTable.Field ; DestTable.Field ; ReturnField )
  (Thu, Dec 14, 1:07pm)
3. BVR_Format ( bvr )
  (Wed, Dec 13, 5:32pm)
4. NumberToHexadecimal(NumberValue)
  (Fri, Dec 08, 8:54am)
5. Get_BaseTable
  (Thu, Dec 07, 4:27pm)
6. JSONCreateVarsFromKeys ( json ; namespace )
  (Wed, Dec 06, 8:21pm)
7. GetTableNzme ( field )
  (Tue, Dec 05, 9:16pm)
8. TimeFormatAsText ( theTime )
  (Mon, Nov 13, 1:59pm)

RSS Feed of Custom Functions