Results 1 to 6 of 6

Thread: [RESOLVED] VBS New Line

  1. #1

    Thread Starter
    Fanatic Member MetalKid's Avatar
    Join Date
    Aug 2005
    Location
    Green Bay, Wisconsin
    Posts
    534

    Resolved [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!

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: VBS New Line

    "Here is line one" & vbCrLf & "Here is line two."

  3. #3

    Thread Starter
    Fanatic Member MetalKid's Avatar
    Join Date
    Aug 2005
    Location
    Green Bay, Wisconsin
    Posts
    534

    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!

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: VBS New Line

    Quote 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?

  5. #5

    Thread Starter
    Fanatic Member MetalKid's Avatar
    Join Date
    Aug 2005
    Location
    Green Bay, Wisconsin
    Posts
    534

    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!

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width