Jump to content

How to "Return" a line


ericnail
 Share

Recommended Posts

How do I return a line in the script it's self.

I know you can use @CRLF to make a line in the Script output, but having long lines and having to scroll right/left can be a pain.

I seem to remember it was something like "_&" or something, But I couldn't find the answer on the build in "F1" help, or the online wiki about it.

Thanks,

Eric

Edited by ericnail
Link to comment
Share on other sites

You can try the concatenation assignment, &=

$var = "This would be a very long line..." & @CRLF & "This would be a very long line..." & @CRLF 
$var &= "This would be a very long line..." & @CRLF & "This would be a very long line..." & @CRLF 
$var &= "This would be a very long line..." & @CRLF & "This would be a very long line..." & @CRLF 
$var &= "This would be a very long line..." & @CRLF & "This would be a very long line..." & @CRLF
Link to comment
Share on other sites

Try this

MsgBox(0,"A Very Long line","A Very Long line, A Very Long line, A Very Long line, " _
 &"A Very Long line, A Very Long line, A Very Long line, A Very Long line, A Very Long line, " _
 &"A Very Long line, A Very Long line, A Very Long line, A Very Long line, A Very Long line")

using a underscore '_' will inform the interpreter to combine the next line with the previous line as one.

Make sure to also use an ampersand '&' on the next line.

Edited by Realm

My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry. 

Link to comment
Share on other sites

Try this

MsgBox(0,"A Very Long line","A Very Long line, A Very Long line, A Very Long line, " _
 &"A Very Long line, A Very Long line, A Very Long line, A Very Long line, A Very Long line, " _
 &"A Very Long line, A Very Long line, A Very Long line, A Very Long line, A Very Long line")

using a underscore '_' will inform the interpreter to combine the next line with the previous line as one.

Make sure to also use an ampersand '&' on the next line.

Ahhh that's it!

Thanks!

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
 Share

  • Recently Browsing   0 members

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