madhatt Posted April 19, 2012 Posted April 19, 2012 Ok, So below is an example text string i'll be working with 2~11~Test ID~4/19/2012 12:23:51 PM~USER~123.123.123.123 what I am trying to do is to get each section of the text (between each ~) into it's own field. I can do it to the first section with the following function Left( Text; Position( Text; "~"; 1; 1 ) - 1 ) But everything fails after that So in the end I am needed to create 6 fields. and those fields "using this example" would show the following. 2 11 Test ID 4/19/2012 12:23:51 PM USER 123.123.123.123 Any help would be appreciated!
mr_vodka Posted April 19, 2012 Posted April 19, 2012 From your sample it doesnt seem like there would ever be any carriage returns. So your parsing could be as simple as: Substitute ( "2~11~Test ID~4/19/2012 12:23:51 PM~USER~123.123.123.123"; "~"; ¶ ) or Substitute ( YourRawField; "~"; ¶ ) Then you can use GetValue ( ) to grab the value that you want. 1
madhatt Posted April 19, 2012 Author Posted April 19, 2012 Perfect-O! Thanks so much that's exactly what I was looking for.
Recommended Posts
This topic is 4670 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