Very simple question

Results 1 to 3 of 3

Thread: Very simple question

  1. #1
    Join Date
    Dec 1969

    Default Very simple question

    I&#039;ve hardly ever looked at jscript, so forgive the naivetei of this question.<BR><BR>Is there a method in jscript that acts like the chr(13) method in vbscript? If so what is it? (you wouldn&#039;t believe the amount of time I&#039;ve been looking for it)

  2. #2

    Default RE: Very simple question

    JS uses a concept of escape characters.<BR>"Hello
    " will contain a newline at the end.<BR>Check the reference ;) Read the free manual , there is a link at the bottom left of this page.<BR>

  3. #3
    Join Date
    Dec 1969

    Default Technically...

    Chr(13) is done in JS via "
    ".<BR><BR>But Chr(13) is almost surely the wrong thing to be using in VBS code, so don&#039;t proliferate the error into your JS coding.<BR><BR>In VBS, you SHOULD be using vbNewLine or vbCrLf or, at a minimum, vbLF. You should *NOT* be using vbCR [which is identical to Chr(13) of course].<BR><BR>The best choice is vbNewLine, because that is platform independent. And so is "
    " in JS code.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts