NewWindowName ( name )
Generates a unique window name by appending -N to the window name.
Average rating: 4.2 (23 votes) Log in to vote
Vaughan Bromfield - Show more from this author |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
NewWindowName ( name )
by Vaughan Bromfield
Version 1.0
8 March 2012
Returns a unique window name based on the text passed to the function.
It attempts to use the same rules the FMP natively uses when duplicating windows:
If the window name already exists then " - n" is appended, where n≥2.
If the window name already has " - n" at the end then:
return the base window if it does not exist
else increment the number n.
Comments
unix, Japan Feb 1, 2016 |
||
You can use SerialIncrement ( name ; 1 ) for incrementing right most number part in text. |
||
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.