|
-
Aug 15th, 2008, 08:44 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] VBS New Line
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."
If your problem is solved, please use the Mark Thread As Resolved under Thread Tools!
Show Appreciation. Rate Posts!
-
Aug 16th, 2008, 02:52 AM
#2
Re: VBS New Line
"Here is line one" & vbCrLf & "Here is line two."
-
Aug 16th, 2008, 09:56 AM
#3
Thread Starter
Fanatic Member
Re: VBS New Line
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.
If your problem is solved, please use the Mark Thread As Resolved under Thread Tools!
Show Appreciation. Rate Posts!
-
Aug 19th, 2008, 03:43 AM
#4
Re: VBS New Line
 Originally Posted by MetalKid
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?
-
Aug 20th, 2008, 07:13 AM
#5
Thread Starter
Fanatic Member
Re: [RESOLVED] VBS New Line
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.
If your problem is solved, please use the Mark Thread As Resolved under Thread Tools!
Show Appreciation. Rate Posts!
-
Aug 22nd, 2008, 02:40 PM
#6
Re: [RESOLVED] VBS New Line
I figured that was enough information to get the point across.
Exactly.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|