DeeAge Posted April 3, 2015 Share 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. Link to comment Share on other sites More sharing options...
comment Posted April 3, 2015 Share 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. Link to comment Share on other sites More sharing options...
DeeAge Posted April 4, 2015 Author Share Posted April 4, 2015 This works perfect. Thank you very much for your help! Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 3094 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