Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hi All,

I wonder if anyone can help me.

I've tried to create a function that extracts a filename off the end of a filepath on a mac of the format:

"RAID:Thisfolder:anotherfolder:Thefilename.pdf"

I thought this should be relatively easy - using a RIGHT function, and using Position to find the last ":".

But Position returns the wrong position count, and I can't see why.

Any ideas?

Richard.

Posted

Let([ p = "RAID:Thisfolder:anotherfolder:Thefilename.pdf";

plines = substitute( p; ":"; "¶");

pn = valuecount ( plines)];

getValue( plines; pn)

)

Posted

That works - thanks!

It's similar to a custom function I was trying to use - but didn't work.

And in response to the other chap who said "such as" - I started to compose a response showing how it _didn't_ work, and then realised that my test database was working as expected. That led to more confusion for me - so sorry that I didn't get back to you directly straight away!

Thanks all.

Richard.

This topic is 5313 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.