Sign in to follow this  
Followers 0
ericnail

How to "Return" a line

5 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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.  

Share this post


Link to post
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!

Share this post


Link to post
Share on other sites

Ahhh that's it!

Thanks!

My Pleasure, I had the time ;)


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.  

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  
Followers 0