Continue a command on the next line
Asked Answered
R

1

7

Is there a way to continue a command on a new line? My MsgBox() function call is long, for the sake of readability I want to do something like this:

$confirm = MsgBox(321, "Check Information", "Confirmation Number:     " & @LF &
                                            "Amount:                  $")

This returns a syntax error and points to the end of the first line as being the location of the error.

Remotion answered 3/2, 2012 at 22:9 Comment(1)
Related: 1, 2.Zoroastrian
F
12

Place an underscore at the end of the line:

$confirm = msgbox(321, "Check Information", "Confirmation Number:     " & @LF & _
                                            "Amount:                  $")
Fadil answered 3/2, 2012 at 22:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.