Jump to content

Write script function over multple script lines


Recommended Posts

Hi Guys,

To wirte a script line for, let say, the msgbox I can do:

MsgBox(0, "Title", "Line one" & @CRLF & "Line two" & @CRLF & "Line three" & @CRLF & "Line four" & @CRLF & "Line five" & @CRLF & "Line six)

If this line is quite long, the readability of the function could be bad.

In some example script on this forum, I have seen a better way to write this by cutting off the line and use multiple script lines. Something like this:

MsgBox(0, "Title", "Line one" & @CRLF & "Line two" ****

@CRLF & "Line three" & @CRLF & "Line four" ****

@CRLF & "Line Five" & @CRLF & "Line six")

How can I cutoff these lines? The asteriks in the lines above are the missing parts for me.

Thanks in advance,


Link to comment
Share on other sites

  • Developers

Thought that was pretty well defined in our helpfile on how to do that. :)

Search hint: continuation


Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
Live for the present,
Dream of the future,
Learn from the past.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...