The information in this article applies to:
SYMPTOMSAdvanced: Requires expert coding, interoperability, and multiuser skills.
NOTE: The TreeView control is only available if you have installed the Microsoft Office 2000 Developer software package. CAUSEThe Item Method, which can be used to return a specific member of the Nodes collection, takes one argument. If this argument is a numeric expression, the Item method searches for the node by index; if the argument is a string expression, the Item method searches for the node by key. Because this argument is a Variant, the Item method cannot distinguish a key expression from an index expression, unless that expression contains at least one non-numeric character. RESOLUTIONConcatenate at least one non-numeric character to the expression in the key argument of the Add method. For example, add a node by using
instead of
MORE INFORMATIONThe sample code in this article uses Microsoft Data Access
Objects. For this code to run properly, you need to reference
the Microsoft DAO 3.6 Object Library.
Steps to Reproduce Behavior
REFERENCESFor more information about the Add method of the Node object, click Microsoft Visual Basic Help on the
Help menu, type Add Method (Nodes Collection) in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned. Additional query words:
Keywords : kbcode kberrmsg |
Last Reviewed: September 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |