Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #11870
| From | "R.Wieser" <address@not.available> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Something rather odd: results change by adding blank lines to the code |
| Date | 2018-02-28 12:15 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <p7630h$1oem$1@gioia.aioe.org> (permalink) |
Hello All, I'm writing some script to check if a certain file does infact contain unicode, or is just ASCII formatted that way. The code is nothing special, just using a ReadAll to get the file contents, and than function which checks the first two chars (&hFF, &hFE) and a loop checking each second char (&h00). The odd thing is that I got back that one of those &h00 checks failed, when I could see (using a hex editor) that all of those where infact zero. When I added a wscript.echo to show the index and the contents the problem disappeared. When I removed the line again the problem came back. Huh ? It became stranger though: when I just placed an empty line there the problem went away too. And than sometimes adding an empty line somewhere else (regardless of the middle, begin or end of the script) made the location of the failed check change - or disappear. I'm confused, and worried: what is going on here ? Regards, Rudy Wieser
Back to microsoft.public.scripting.vbscript | Previous | Next — Next in thread | Find similar | Unroll thread
Something rather odd: results change by adding blank lines to the code "R.Wieser" <address@not.available> - 2018-02-28 12:15 +0100
Re: Something rather odd: results change by adding blank lines to the code Wally W. <ww84wa@aim.com> - 2018-02-28 08:05 -0500
Re: Something rather odd: results change by adding blank lines to the code "R.Wieser" <address@not.available> - 2018-02-28 15:14 +0100
Re: Something rather odd: results change by adding blank lines to the code JJ <jj4public@vfemail.net> - 2018-02-28 20:25 +0700
Re: Something rather odd: results change by adding blank lines to the code Wally W. <ww84wa@aim.com> - 2018-02-28 08:38 -0500
Re: Something rather odd: results change by adding blank lines to the code "R.Wieser" <address@not.available> - 2018-02-28 14:55 +0100
Re: Something rather odd: results change by adding blank lines to the code "Mayayana" <mayayana@invalid.nospam> - 2018-02-28 10:01 -0500
Re: Something rather odd: results change by adding blank lines to the code "R.Wieser" <address@not.available> - 2018-02-28 17:16 +0100
csiph-web