I know you can do Chr(13) & Chr(10), but is there a way to represent these characters in the actual string? Like MsgBox "Here is line one.\nHere is line two."
Printable View
I know you can do Chr(13) & Chr(10), but is there a way to represent these characters in the actual string? Like MsgBox "Here is line one.\nHere is line two."
"Here is line one" & vbCrLf & "Here is line two."
That didn't answer my question... The VB Script I have is calling a Webservice that returns a string. It needs to have the new line character embedded in the string. I was wondering if there were any special characters we can put into the string that will force the new line.
Though, I ended up changing the webservice to just replace a placeholder with Environment.NewLine instead, so I guess you could call this resolved.
You didn't mention that it was coming from a web service or the fact that the web service was .NET rather than VBScript. If you don't mention it, we won't know. Or were you assuming that we are all psychics?Quote:
Originally Posted by MetalKid
If you read my original post, I said I know about Chr(13) & Chr(10), which is the same thing as vbCrLf. I then said Like MsgBox "Here is line one.\nHere is line two." I figured that was enough information to get the point across.
Exactly.Quote:
I figured that was enough information to get the point across.