Jump to content
Sign in to follow this  
Audrey

Write script function over multple script lines

Recommended Posts

Audrey

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,

Audrey

Share this post


Link to post
Share on other sites
Jos

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

Search hint: continuation

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Audrey

Thank you Jos!

Continuation was the word I was looking for, although it gave just two results in the helpfile.

Perhaps a good idea to add this trick also the function reference of MsgBox?

Groet,

Audrey

Share this post


Link to post
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
Sign in to follow this  

×