Re: what do I have to do to make ado stream work in vbs?

From: gg (gg_at_nomail.nil)
Date: 02/08/05

  • Next message: HaroldR: "Responding to Security alserts"
    Date: Mon, 7 Feb 2005 21:33:03 -0700
    
    

    Thanks very much Michael.

    I also appreciate the documentation reference.

    Apparently the combined mode 3 is fine with js but not vbs!

    "Michael Harris (MVP)" <mikhar@mvps.org> wrote in message
    news:OIqLSbVDFHA.2824@tk2msftngp13.phx.gbl...
    >> the statement
    >> oStream.saveToFile sTo, 3 ' Create if needed and
    >> overwrite if necessary
    >> give me trouble about invalid argument. I verified that sTo has the
    >> right path and directory. What I don't know is hoe to make the 2nd
    >> argument to conform what the stream saveToFile expect the constant
    >> create or write over mode.
    >
    > Use adSaveCreateOverWrite as the SaveOptions argument.
    >
    > Const adSaveCreateOverWrite = 2
    >
    > The docs for...
    >
    > SaveOptionsEnum ()
    > http://msdn.microsoft.com/library/en-us/ado270/htm/mdcstsaveoptionsenum.asp
    >
    > ..state that adSaveCreateNotExist (1) and adSaveCreateOverWrite (2) can be
    > combined with an And, but I assume that is a doc bug. Use either the
    > adSaveCreateOverWrite value or the adSaveCreateNotExist value, but don't
    > combine the two in any way.
    >
    > --
    > Michael Harris
    > Microsoft.MVP.Scripting
    >


  • Next message: HaroldR: "Responding to Security alserts"
    Loading