Frink1234 Posted November 13, 2005 Posted November 13, 2005 I am trying to use SetField to set all but the last 9 words of one field to another. I have tried using Leftwords(Text_Field - 9) didn't work. Then I tried LeftWords(Text_Field;WordCount(Text_Field) - 9) Nope. What am I doing wrong?
Raybaudi Posted November 13, 2005 Posted November 13, 2005 The first is evidently wrong... but the second one is correct and must work !
Frink1234 Posted November 13, 2005 Author Posted November 13, 2005 Oh, I was right with the second script! The reason it wasn't working - I was trying to use it on a calculated field and it was coming back with a numeric value. So I cut and pasted the text into a global text field first and then set this field to the target field. There might be a more elegant solution but this works.
Recommended Posts
This topic is 6952 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