One command on multiple line (example MsgBox)

Quillok

Member
Licensed User
Longtime User
Hi,

i just wanted to ask if it's possible to use one command over multiple lines? I hope you understand what I mean because english is not my mother tongue.

Here's an example what I mean with the Msgbox:

B4X:
MsgBox("Test","Test")
This works

B4X:
MsgBox("Test",
"Test")
This causes an Error.

But I think it would be helpful because I'm using a MsgBox with a lot of variables and the command is to long to fit on the screen, so i have to scroll a lot. And if it would work over multiple lines I could comment every variable so I know what it does when I want to work a few weeks later on my program.

Heres what I mean, what would be perfect, maybe not only for me, even for some other users here

Normal use because there is no other way:
B4X:
MsgBox("Here I write some Text" & VariableText1 & VariableText2 & "some normal Text again" & VariableText3 & VariableText4,"Only some Text)

How I would prefer it to use:
B4X:
MsgBox("Here I write some Text"  'Some text...
& VariableText1 'VariableText1 contains this and that
& VariableText2 'VariableText2 contains some other this and thats
& "some normal Text again" 'Normal Text 
& VariableText3 'VariableText3 shows something beautiful
& VariableText4, 'VariableText4 shows something more beautiful 
"Only some Text") 'The rest thats needed :)

I hope it's clear what I meant and maybe some of you think so too. Or is this not possible for the compiler?

Greetings from Germany
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…