Skip to main content
Known Participant
January 18, 2013
Answered

Add text before existing...

  • January 18, 2013
  • 1 reply
  • 551 views

Hi there!

I populate a dynamic text field with various warnings and/or indications related to the progress of different actions.

Dimensions of the text field are limited. It has a ScrollBar Component attached to it.

I currently use "+=" to add warnings and/or indications.

Problem is:

I want the last added text to always be inserted at the top of the list instead at the bottom.

This way, user can see the progress without doing anything.

User only use the ScrollBar to navigate into the text field to have a look to previous actions reported in it.

Is there a way to do this?

Many thanks in advance for your help!

PS: I think there's a typo in "dinamyc" tag which should be dynamic... Please correct it...   🙂

This topic has been closed for replies.
Correct answer Ned Murphy

The way to add the text at the beginning is to reassign the text and add the existing text....

     tfield.text = newText +tfield.text;

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
January 18, 2013

The way to add the text at the beginning is to reassign the text and add the existing text....

     tfield.text = newText +tfield.text;

Germaris1Author
Known Participant
January 18, 2013

As usual, it's jaw dropping simple!

Thank you very much, Ned!

You made my day.

Ned Murphy
Legend
January 18, 2013

You're welcome