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 6426 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi,

I'm having a field which has file path's seperated by "return characters". I'd like to extract the actual filenames, so everything in between a "/" and a return character. Is there a function that can do this?

Thanks

Robin

Posted

Hi Robin,

Try this in a new calculation field

Right ( [color:red]Text ; Length ( [color:red]Text ) - Position ( [color:red]Text ; "/" ; 1 ; 1 ) )

Substitute your field for [color:red]Text.

HTG

Lee

Posted

I'm confused by what you are looking for here.

Is this a field in your file, then the calculation will show on each record.

Are you importing records, and this is part of a larger text file?

More detail on what you have now, and what you are trying to obtain will be helpful.

Lee

Posted

Hi,

It's for attachments, different attachments will be used with a "return character" in between, so I need to check for the return characters, put the different in soms sort of array (if this would be possible in FM) and then print the last characters of each line before the /, does anyone have an idea?

Thanks

Robin

Posted

If the number is not constant, a recursive calculation is required - so either a custom function, or a repeating calculation field, or a script.

print the last characters of each line before the /

I think you mean "the last characters of each line before the LAST /"?

Posted

this function could be applied recusively ;)

http://www.briandunning.com/cf/674

Posted

If the number is not constant, a recursive calculation is required - so either a custom function, or a repeating calculation field, or a script.

I think you mean "the last characters of each line before the LAST /"?

Thanks guys, I actually meant after the last /

The briandunning function is really nice, now I just have to check for the amount of "/"s.

Robin

Posted (edited)

no, you haven't ;)

use the occurrence -1

Edited by Guest

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