Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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, "

Posted

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, "
Posted

i've now tried setting up a looping script, but hit a dead end with the following script:

SetField [storeText, origText]

SetField

Loop

SetField

Posted

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, "

This topic is 8781 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
×
×
  • Create New...

Important Information

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