Question about Text Area

Hi there.

This is probably a really silly question, but I will ask it anyway.

I have a program that writes into a text area. Simple Enough. But if I write a line, ie

TextArea1.text = theFirstString ‘holding string for a calculation turned into a string
And then
TextArea1.text = theSecondString ‘holding area for an md5 hash

I only get the output of the second string.

Now I have verified with System.Debug that the values are there, and are actually strings, and if I concatenate them, it works fine.

It does NOT print the first string, and then second String, even if I add a

EndOfLine.CRLF after the strings.

Any ideas?

Setting the .Text property overwrites the entire contents of the TextArea. There is an AddText(text as String) function or, as you found, you can concatenate the values before you put them into the text area.

var sBoth as String = theFirstString + EndOfLine + theSecondString
TextArea1.Text = sBoth
2 Likes

Thanks Mr. Parnell.

I knew it was something simple.

Regards

Michael