November 11, 200025 yr i've accidentally poseted this in 'define fields', so here it is again: i'm trying to come up with a way to quote text. i've done the following: SetField SetField [quoteText, Substitute(quoteText, "
November 12, 200025 yr quote: Originally posted by stefangs: i've accidentally poseted this in 'define fields', so here it is again: i'm trying to come up with a way to quote text. i've done the following: SetField SetField [quoteText, Substitute(quoteText, "
November 12, 200025 yr Author i've now tried setting up a looping script, but hit a dead end with the following script: SetField [storeText, origText] SetField Loop SetField
November 12, 200025 yr I'm not sure yet what to do about the speed issue, but you could get around the punctuation issue by taking a look at characters instead of words. Take a look at these two calcs: LeftWords( Text_Field, 1 ) Left( Text_Field, Position( Text_Field, " ", 1, 1 ) - 1 ) These two calcs return the same informaiton if there is no punctuation after the word (like a period or a comma). But for the text "one, two", the first calc returns "one" and the second calc returns "one,". To get the length of the current (i.e., last) line is a bit more complex: Length( Text_Field ) - Position( Text_Field, "
Create an account or sign in to comment