Daniel-White Active Member Licensed User Longtime User Feb 23, 2016 #1 I know this is very trivial question, 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 _
I know this is very trivial question, 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 Feb 23, 2016 #2 Something like this ? Note the & because you have to concatenate the strings Code: Copy 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
Something like this ? Note the & because you have to concatenate the strings Code: Copy 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")
Daniel-White Active Member Licensed User Longtime User Feb 23, 2016 #3 lemonisdead said: Something like this ? Note the & because you have to concatenate the strings Code: Copy 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") Click to expand... Thanks you Indeed. Upvote 0
lemonisdead said: Something like this ? Note the & because you have to concatenate the strings Code: Copy 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") Click to expand... Thanks you Indeed.
klaus Expert Licensed User Longtime User Feb 23, 2016 #4 You have also the Wordwrapp option. In the IDE menu Tools / IDE Options select the Font Picker. In the Font Picker check WordWrap Upvote 0
You have also the Wordwrapp option. In the IDE menu Tools / IDE Options select the Font Picker. In the Font Picker check WordWrap
Erel B4X founder Staff member Licensed User Longtime User Feb 24, 2016 #5 The correct answer: Code: Copy 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") [B4X] Smart String Literal Last edited: Feb 24, 2016 Upvote 0
The correct answer: Code: Copy 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") [B4X] Smart String Literal
lemonisdead Well-Known Member Licensed User Longtime User Feb 24, 2016 #6 Excuse me but : is it preferable to do it like this ? (Reference to correct answer) Upvote 0
mangojack Expert Licensed User Longtime User Feb 24, 2016 #7 @Erel .. should string closure not be ' "$ ' The above code throws.. Error Parsing Program ... String is not Closed (Missing "$) This is OK Code: Copy 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
@Erel .. should string closure not be ' "$ ' The above code throws.. Error Parsing Program ... String is not Closed (Missing "$) This is OK Code: Copy 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 "$
Erel B4X founder Staff member Licensed User Longtime User Feb 24, 2016 #8 lemonisdead said: is it preferable to do it like this ? Click to expand... Yes. It is simpler and is also more maintainable. Upvote 0
lemonisdead said: is it preferable to do it like this ? Click to expand... Yes. It is simpler and is also more maintainable.