Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6017 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted (edited)

Hi,

I have a field with a file path and I want to extract just a word from it, how I do it?

Example:

file: //Mac/Users/Me/Documents/Images/ProjectA/sculptures/A1.jpg

returns: sculptures

file: //Mac/Users/Me/Documents/Images/ProjectB/photographs/File5abc.jpg

returns: photographs

Edited by Guest
more explicit
  • Newbies
Posted

will that word be always the last folder in the path (before the filename)?

Well, yes, that last folder name is what I need now.

The last part, the file name, is different every time and have different number of characters. BTW, once I get to know how to get that last folder name of the path maybe I would try to get the previous folder name as well :

TIA

Posted

Try this:

Let

([

list = Substitute ( path ; "/" ; ¶ ) ;

values = ValueCount ( list )

];

GetValue ( list ; values - 1 )

)

This topic is 6017 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.