Quote:
Quote:
> > WriteIn is an IE method.
> I never would have guessed that IE and TextStream objects would use two
> different write methods.
> Textstream is part of the scripting runtime, a whole
different kettle of fish. The IE DOM (Document Object
Model) has some similarities with other standards that
Microsoft uses. (For instance, the notion of a "TextRange"
is used in the DOM and also in the RichEdit API,) But in
general the IE DOM is unique.
The scripting runtime (scrrun.dll) was designed
especially for the Windows Script Host. At the time
the Microsoft designers thought (mistakenly) that only
plain text file access would be relevant with WSH. I guess
that partially explains why they came up with a gimmicky
name like "Textstream" and didn't use something less
confusing like...maybe..."File".
Quote:
Quote:
> > 2 fatal errors in and you didn't find that out when you ran the script?
> The VBS interpreter never choked on either error.
> Maybe you had error trapping in place? If
you use On Error Resume Next and don't comment
it out for debugging then you wouldn't get an error.
When I tried only those 3 lines the first error was
"Object required" because I was trying to call
CreateTextFile with the oFS[zero] object, which of
course wasn't an object.