paul_apted Posted February 9, 2003 Posted February 9, 2003 i thought this would be really straightforward but alas not This is what i want to do .i have a field called "filepathtext" it contains the filepath of a file .I want to take that field and remove the filepath section of it EG OSX:file:myfile^gnat. i would like to move the "myfile" part to one field and the text after "^" to another field . the problem is i cannot use a "left/Right/Middleword" statement because each record has a different file path and therefore a different length ,what i am trying to do is find a function that finds SPECIFIC TEXT and not WHERE it is ... any ideas THanks Paul Apted
andygaunt Posted February 9, 2003 Posted February 9, 2003 Paul, Using the right function along with the length & position function will find anything after the ^. So create your filename calculation field to be the following with a result of text. Right(filepath, Length(filepath) - Position(filepath, "^", Length(filepath), -1)) HTH
paul_apted Posted February 12, 2003 Author Posted February 12, 2003 That worked thank you for your help Paul
Lee Smith Posted February 12, 2003 Posted February 12, 2003 Hi Paul, I'm glad that Andy's calculation was helpful to you. I was just wondering if you were able to find the second calculation to move the "myfile" side into a separate field too? Lee
Recommended Posts
This topic is 8025 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