Jump to content

quoting text question.


This topic is 8057 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

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

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

This topic is 8057 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.