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

Recommended Posts

Posted

Hi,

I'm trying to make a calculation that will remove the last three characters from a field.

I have imported a bunch of picture files and I want to have a field that has the label of the file without the file type info.

For example:

FILENAME: A1-3.jpg (full filename)

NAME: A1-3 (the name without the extension)

Does anyone know how I can make this work in the name field? Is it a calculation?

Thanks,

Ro

Posted

Hi Ro,

It might be easier to drop everything after the period since file extensions now can be more than three characters. You might try this:

Left ( text ; Position ( text ; "." ; 1 ; PatternCount ( text ; "." ) ) - 1 )

Posted

Thanks LaRetta, I'm going to test this. Do I run it as a script or a calculation though?

Thank you.

Wait!!! Got it. It worked like a charm!! Thank you :laugh:

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