Android Question Syntax for code across multiple lines

DavidS

New Member
Hello

I have tried searching so many combinations of terms and I cannot find the answer to this if it is possible.

I would like to be able to define a Type for instance with many parameters, and put a newline after each comma. What I am hoping is to then also add comments per line to the code.

An example would be something like this

B4X:
Type Person(Name As String,    ' Persons combined full name
            Age As Integer,    ' Current age
            Country As String, ' Country where they reside
            FavoriteColor As String) ' Color name

I remember in VB6 doing a multiline code block and having to underscore at the end of each line to make it work. Is there something similar? Can this be done? Thank you in advance

Turns out underscore worked and I must not have done it correctly in my previous attempts. I think I may have missed a space before the _
 
Top