Re: stdout.writeline output issue
- From: "Todd Vargo" <tlvargo@xxxxxxxxxxxxxx>
- Date: Mon, 24 Mar 2008 17:39:22 -0400
Pegasus (MVP) wrote:
<ibeanon@xxxxxxxxx> wrote:....
... I cannot figure out why my output (to
the console) is not what I expect.
You can easily resolve these problems by examining the problem
string in detail, e.g. like so:
str = ""
For i = 1 To Len(tmp)
str = str & Asc(Mid(tmp, i, 1)) & " "
Next
wscript.echo str
You would immediately notice that the string "tmp" is terminated
by $0d (carriage return), which others in this thread have also
suggested. This is what's causing your problem.
Good idea. I forgot to mention, the output OP sees is only seen when output
is sent to console because CR without the LF causes output on screen to
overwrite itself. If redirected to a file and then viewed with a text
editor, the output can be seen differently.
--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)
.
- References:
- stdout.writeline output issue
- From: ibeanon
- Re: stdout.writeline output issue
- From: Pegasus \(MVP\)
- stdout.writeline output issue
- Prev by Date: Re: WMI and Joining Domain (sysprep related)
- Next by Date: Re: Exit Do
- Previous by thread: Re: stdout.writeline output issue
- Next by thread: Re: MODAL MESSAGEBOX
- Index(es):
Relevant Pages
|