Heathbo Posted February 11, 2006 Posted February 11, 2006 How do you write a script that will set a text field to a word or words found in the middle of a sentence. For example, Say I have a text field with the words John, James, Bill, Ed, Brian. How would I write the script so it will set a text field to the words in-between James, and Brian. James, and Brian will always stay the same.
Genx Posted February 11, 2006 Posted February 11, 2006 (edited) ... id say use a calc... MiddleValues( substitute(Substitute(textfield; "James," ; ¶ ); "Brian." ; ¶ ) ; 2; 1) hope that helped... if it doesnt work, make an extra field for the substitute bit... genx Edited February 11, 2006 by Guest forgot a semi-colon
Heathbo Posted February 24, 2006 Author Posted February 24, 2006 OK, what if I just want to find the word in-between the HTML tags and ? The HTML is put into a field titled Web Content.
Recommended Posts
This topic is 6850 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