Sign in to follow this  
Followers 0
dufran3

Organize code by line

3 posts in this topic

Here is the piece of code that I am working with. It is all on one line. I am trying to break it up into multiple lines for readability. I know this can be done, but just can't seem to get the syntax correct. Can someone help? I am using smtp to send an e-mail and am trying to break up the line of the .TextBody...

With $objMail
        .From = "blah@blah.com"
        .To = "blah@blah.com"
        .Subject = "this is a test"
        .TextBody = "Computername: " & @ComputerName & @CRLF & "Date: " & $Date & @CRLF & "Time: " & $Time
EndWith

Thanks GUYS!!!!!

Share this post


Link to post
Share on other sites



Drop the commas.

MsgBox(64, "", _
"dasdas" & @CRLF & _
"dsadas" & @CRLF & _
"dsada")

Share this post


Link to post
Share on other sites

u pwned me. Thx buddy!

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