Jump to content

How to extract text to fields?


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

Recommended Posts

How would I extract text from this text block in a FileMaker field:

 

Billing Information

----------------------

First Name : Jacky

Last Name : Taylor

Address : 178 Gazellenkamp

City : Stellmar

State/Province : MO1

Zip/Postal Code : 7783

Country : US

Email :[email protected]

 

 

As a result I would like to have the:

 

First name in a separate field,

Last name in a separate field,

email in a separate field, etc

 

I have trie with 'Position', 'MiddleWords' etc, but cannot get it working.

 

Thanks for any help.

Link to comment
Share on other sites

Here's how you can extract the last name =

Let ( [
prefix = "Last Name : " ;
start = Position ( Yourfield ; prefix ; 1 ; 1 ) + Length ( prefix ) ;
end = Position ( Yourfield ; ¶ ; start ; 1 )
] ;
Middle ( Yourfield ; start ; end - start )
)

For other fields, just change the prefix variable accordingly.

Link to comment
Share on other sites

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