how to put a line break in a string? - Programmers Heaven

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?

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 Posts: 1,212Member
    : 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 Posts: 184Member
    : : 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 Posts: 6Member
    : 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.