Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Hello all,

I want to separate the data below (which comes from one text field) into ten separate fields within the same record. For instance, "Status" is a field and "Received" would populate it. "Date/Time" is a field and "2/12/2010 4:33:07 PM" would populate it. etc, etc. Any ideas from the text parsing wizards out there would be appreciated. :

Thanks, Eric

Status: Received

Date/Time: 2/12/2010 4:33:07 PM

Speed: 14400 bps

Connection time: 00:36

Pages: 1

Resolution: Normal

Remote ID: 18885551212

Line number: 1

DTMF/DID: 1

Description: Fax received from 18885551212

Posted

This will extract the text "Normal" from the 6th line of the text:


Let ( [

t = MiddleValues ( text ; 6 ; 1 ) ; 

start = Position ( t ; ": " ; 1 ; 1 ) + 2 ;

end = Position ( t ; ¶ ; 1 ; 1 ) 

] ;

Middle ( t ; start ;  end - start )

)

To extract the other values, just change the 6 to the desired line number.

This topic is 5396 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.