Jump to content

This topic is 4670 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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.

  1. 2
  2. 11
  3. Test ID
  4. 4/19/2012 12:23:51 PM
  5. USER
  6. 123.123.123.123

Any help would be appreciated!

Posted

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.

  • Like 1

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 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.