Brian Dunning's FileMaker Custom Functions

getPathPart ( Pathname ; Number )

Parses pathname for each part

  Average rating: 4.6 (28 votes) Log in to vote

Roger Biel   Roger Biel
2Geckos Consulting, LLC

Share on Facebook Share on Twitter

  Sample input:
C:/Users/Roger/WebWizDirect/Knozall/ ; 1
C:/Users/Roger/WebWizDirect/Knozall/MyTest.txt ; 2
C:/Users/Roger/WebWizDirect/Knozall/MyTest.txt ; 1
C:/Users/Roger/WebWizDirect/Knozall/MyTest.txt ; 99
  Sample output:

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

Option number
0: Returns parent folder
1: Returns the target file or folder name
2-3-4-ect: Returns each part of the pathname
-1: returns Path only
99: returns file extenstion



Log in to post comments.


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

Under construction. Email me your wish list for improvements.