ACF Library

GetFilenameFromPath

Back to List

Description: Return tha filename from a given full path - i.e. remove the directories.

FileMaker Prototype:

Set Variable [$res; ACFU_GetFilenameFromPath( string_path)]

Category: BOOTSTRAP

NOTE: The bootstrap library comes preloaded in the plugin. Read more

Function source:

function GetFilenameFromPath ( string path ) 
   FunctionID 205; 
   path = substitute ( path, ":", "/");
   path = substitute ( path, "\\", "/");
   return regex_replace("^(.+)/(.+\..+)$", path, "\2");
end

Back to List