Brian Dunning's FileMaker Custom Functions

UniqueWindowName ( name )

Starting with

  Be the first to rate this function Log in to vote

Lewis Lorenz   Lewis Lorenz - Show more from this author
Lorenz Companies
http://www.LorenzCom.com

Share on Facebook Share on Twitter

  Sample input:
UniqueWindowName ( "Untitled" )
  Sample output:
Untitled - 2

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

UniqueWindowName ( name )
By Lewis Lorenz
5/28/2020

Starting with "name" parameter, returns a name unique to the list of WindowNames by appending the first non-existent sequential number to the name in the format " - #".
This custom function is recursive. If you change its name, then change it's name in the code.

Example:
UniqueWindowName ( "Untitled" ) = "Unitled - 2" //Where a window named "Untitled" already exists.

 

Comments

Log in to post comments.

 

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

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: