DeeAge Posted April 3, 2015 Posted April 3, 2015 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.
comment Posted April 3, 2015 Posted April 3, 2015 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.
DeeAge Posted April 4, 2015 Author Posted April 4, 2015 This works perfect. Thank you very much for your help!
Recommended Posts
This topic is 3590 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