Howdy, Stranger!

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

Categories

how to put a line break in a string?

earth_walkerearth_walker Member Posts: 184
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

  • leeosleeos Member Posts: 1,212
    : 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]
  • earth_walkerearth_walker Member Posts: 184
    : : 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!
  • dingseadingsea Member Posts: 6
    : 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.