Brian Dunning's FileMaker Custom Functions

AssignWindowName ( Text )

Add " - num" to Text when the Text is not unique in WindowNames.

  Average rating: 4.8 (30 votes) Log in to vote

Koji Takeuchi   Koji Takeuchi
TonicNote, Inc.
https://tonic-note.com

Share on Facebook Share on Twitter

  Sample input:
AssignWindowName ( "Customer" )
  Sample output:
"Customer - 2"

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

AssignWindowName ( Text )
2011.05.18, Koji Takeuchi


description:
Add " - num" to Text when the Text is not unique in WindowNames.
Assumed this will use in script for changing layout and specifying window name.
ex.
Text = text you're about to assign window name to current window.
ex. "Customer"

AssignWindowName ( "Customer" )
-> "Customer - 2" (When window exists which name has "Customer")
-> "Customer - 3" (When window exists which name has "Customer" and "Customer - 2")
-> "Customer - 3" (When window exists which name has "Customer - 2" and does not exists window "Customer")
-> "Customer - 2" (When window exists which name has "Customer" and "Customer - 2" and current window name is "Customer - 2")

 

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.

Under construction. Email me your wish list for improvements.