RowN Posted January 5, 2012 Posted January 5, 2012 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
LaRetta Posted January 5, 2012 Posted January 5, 2012 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 )
RowN Posted January 5, 2012 Author Posted January 5, 2012 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:
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now