last quote dropping to new line

U

unba1300

Guest
When I make a variable equal some text with quotes and then show that in a text box, sometimes that last quote drops to the first position of a new line, which doesn't look very good. Is there a way to prevent that? Thank you.
 
U

unba1300

Guest
See how the quote after the word "fools." drops to a new line in the attachment.
And some code...
B4X:
sent7b = QUOTE & "They're such a bunch of " & varFoodOrObject(0) & "-lovin' fools." & QUOTE & " "
iSent(7) = sent7a & sent7b
For i = 1 To 19
  sb.Append(iSent(i))
Next
txtMainStory.Text = sb
 

Attachments

  • Quotes.jpg
    Quotes.jpg
    18.5 KB · Views: 227
Upvote 0
U

unba1300

Guest
Hi Erel,

I'm using an EditText as the container for the story. If I remember correctly, I did this because I found it didn't matter how long the story was and that I could scroll the EditText up and down, but couldn't do this with a label.
 
Upvote 0
Top