how to put a line break in a string?

in c we can use "
", how do we do that in VB, especially in VBScript? Can we use ASCII code to do that?
Thank you!

Comments

  • : in c we can use "
    ", how do we do that in VB, especially in VBScript? Can we use ASCII code to do that?
    : Thank you!
    :

    yes, you can use an ASCII Chr(i) code .. or this.

    [code]
    Str & VBNewLine
    Str & VBCrLf
    [/code]
  • : : in c we can use "
    ", how do we do that in VB, especially in VBScript? Can we use ASCII code to do that?
    : : Thank you!
    : :
    :
    : yes, you can use an ASCII Chr(i) code .. or this.
    :
    : [code]
    : Str & VBNewLine
    : Str & VBCrLf
    : [/code]
    :
    yes, it works!
  • : in c we can use "
    ", how do we do that in VB, especially in VBScript? Can we use ASCII code to do that?
    : Thank you!
    :
    try Chr(13)..........

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories