Page 1 of 1

General Syntax Rules > Line Continuation

Posted: Fri Mar 28, 2025 2:01 pm
by Stefan Schnell
Hello Community,
at the moment it is possible to split long expressions across several lines via the following operators: plus (+), comma (,), or (|), And, Or, Xor.

This is possible:

Code: Select all

  MessageRequester("Hello this is a very long title",
                   "And a very long message, so we can use the multiline" + #LF$ + Text$,
                   #PB_MessageRequester_Ok)

I suggest to allow the round brackets also as operators for a line break to enable the following:

Code: Select all

MessageRequester(
  "Hello this is a very long title",
  "And a very long message, so we can use the multiline" + #LF$ + Text$,
  #PB_MessageRequester_Ok
)
This improves the readability of the source code and is based on existing standards.

Thanks and best regards
Stefan

Re: General Syntax Rules > Line Continuation

Posted: Fri Mar 28, 2025 3:06 pm
by Quin
Hello,
I'm assuming you mean parenthesies?
If so, +1 from me.

Re: General Syntax Rules > Line Continuation

Posted: Sat Mar 29, 2025 3:55 am
by Stefan Schnell
Hello Quin,
yep, I mean parentheses. Thanks for your clarification.
Best regards
Stefan