stefangs Posted November 11, 2000 Share Posted November 11, 2000 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, " Link to comment Share on other sites More sharing options...
stefangs Posted November 12, 2000 Author Share Posted November 12, 2000 thanks, i'll give that a try. Link to comment Share on other sites More sharing options...
Chuck Posted November 12, 2000 Share Posted November 12, 2000 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, " Link to comment Share on other sites More sharing options...
stefangs Posted November 12, 2000 Author Share Posted November 12, 2000 i've now tried setting up a looping script, but hit a dead end with the following script: SetField [storeText, origText] SetField Loop SetField Link to comment Share on other sites More sharing options...
Chuck Posted November 12, 2000 Share Posted November 12, 2000 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, " Link to comment Share on other sites More sharing options...
stefangs Posted November 13, 2000 Author Share Posted November 13, 2000 thanks chuck! i'll delve into this one! Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7858 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