Need Help with Set Command in vbscript - InfoPath Dev
in

InfoPath Dev

Need Help with Set Command in vbscript

Last post 08-29-2006 05:53 PM by Matt Faus. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-28-2006 06:19 AM

    Need Help with Set Command in vbscript

    Could someone please explain the xdocument set command in vbscript?
    Here's an example:
    Set txtOrg_By = XDocument.DOM.selectSingleNode("//my:txtOrg_By")

    I want to make sure that I understand this statement and it's context for use so that I can apply it properly. Any suggestions would be greatly appreciated.
  • 08-29-2006 05:53 PM In reply to

    Re: Need Help with Set Command in vbscript

    I'm not a big vbscript guy, but I pretty sure I can explain this statement.

    Let's start with the right-hand side, like the compiler does. First we want to use the selectSingleNode() method of the DOM instance for the XDocument object to select a single node from the Main DOM of the form.

    After this node is selected we want to store the result (which will be an IXMLDOMNode object) in a variable named txtOrg_by.

    I hope this is what you're looking for, let us know if you need any other assistance!
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.