saralee Posted June 17, 2010 Posted June 17, 2010 Hi everyone! I would like to know if there is any function or ways to cut a portion of the text string.. By cutting, I mean deleting part of the text without touching the rest.. For example, I have a text string such as: 10/10/2009 (W) Via friend (MC) the format normally goes: --date---location----comment---initial I'm doing some data extraction to put it into different sections (date,location, comment and initial). Since the data is not always in this clean format, I would like to delete whatever I have extracted and whatever is left behind would be the fourth section. So now in my script, I would like to perform the CUT function in my text string, but couldn't figure out how to cut only part of the text string... Hope this makes sense. Please advice. Thanks a lot!
Raybaudi Posted June 18, 2010 Posted June 18, 2010 Hi if I undestand correctly: Pseudo-Date, calculation text field with calc: Trim ( Substitute ( YourTextField ; [ location ; "" ] ; [ comment ; "" ] ; [ initial ; "" ] ) )
saralee Posted June 18, 2010 Author Posted June 18, 2010 (edited) that's exactly what I wanted! : I was able to implement it in my script. Super! Thank you! Edited June 18, 2010 by Guest
Recommended Posts
This topic is 5272 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