Android Question IDE question, how to handle long texts

Daniel-White

Active Member
Licensed User
Longtime User
I know this is very trivial question, :eek: How I can put all the text easy to read without need scroll to right.

I saw some examples somewhere, but I did not remember how is the sintaxis.
Something like :

Msgbox("This is a long but very long text with too much bla la la bla bla bla bla etc etc
and continue here with the text bla bla end ", "My title")

If I am not wrong, we can use this symbol somewhere _
 

lemonisdead

Well-Known Member
Licensed User
Longtime User
Something like this ? Note the & because you have to concatenate the strings
B4X:
Msgbox("This is a long but very long text" _
& " with too much bla la la bla bla bla bla etc etc" _
& " and continue here with the text bla bla end " _
, "My title")
 
Upvote 0

lemonisdead

Well-Known Member
Licensed User
Longtime User
Excuse me but : is it preferable to do it like this ? (Reference to correct answer)
 
Upvote 0

mangojack

Expert
Licensed User
Longtime User
@Erel .. should string closure not be ' "$ '

The above code throws.. Error Parsing Program ... String is not Closed (Missing "$)

This is OK
B4X:
myText = $"This is a long but very long text
   with too much bla la la bla bla bla bla etc etc
   And Continue here with the text bla bla end "$
 
Upvote 0
Top