Jump to content
Sign in to follow this  
nixdorf

carriage return in script (insert text)

Recommended Posts

Hi,

I have a script that insert text in a field, is possible at first move the cursor to the beginning of paragraph? Thanks.

(maybe the title is better: "move the cursor to the beginning of paragraph" but I don't know change)

Share this post


Link to post
Share on other sites

Not sure what you mean by "the beginning of paragraph" - a text field can easily contain several paragraphs. In any case, look at the Set Selection [] script step.

Share this post


Link to post
Share on other sites

Thanks comment,

If I write new text, this is added at the end of the paragraph so that the new texts are increasingly below... I would like that new texts remain on the top of the paragraph, same a log.

Share this post


Link to post
Share on other sites

IMHO, you should start a new record for each log entry. But if you prefer, you can use:

Set Selection [Yourfield ; Start Position: 0 ; End Position: 0]

to place the cursor at the beginning of the field.

  • Like 1

Share this post


Link to post
Share on other sites

Or you capture the user's input in a global text field and then do a Set Field into the target field, prepending the user's input to what's already in the field.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

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