i have sorted out the dim new node bit, thanks. the code:
Option Explicit
Dim fnode As Node
Dim FIndent As Integer
Dim FIndex As Integer
Dim StrtPath As String
Private Sub cmdGo_Click()
Dim x As Integer, S$
Dim file_name As String
file_name = App.Path
If Right$(file_name, 1)...
Thanks for the response.
The value of file_name when it fails is "C:\Project\" which is the application folder.
as you suggested i changed the name from node to Newnode, but still got the same error.
i have a treeview control to display file directory that works fine when i run the just form as a project in vb.
However when i add the form to a larger project i get a Run-time error '13' Type mismatch at the line to create the root node which is:
Set pnode = treeview1.nodes.add(, ...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.