index | search | no replies | posting guidelines | help login | register
Index » General » Site & Forum Feedback
search this forum:
:: TreeView Error -Variable is undefined: 'strFolder' ::    show all messagesPost a New Message | Post a Reply
Mar 8 2006, 9:06 AM
 Re: TreeView Error -Variable is undefined: 'str...Post a Reply
 whichman

View this author's profile Send this author a private message Visit author's homepage

from: Laurel, MD

The code below will work if you also have the image folders that come with the download. Try this file myexplorer.asp

<!--#include file= "clsTreeView.asp"-->
<%
'declare and set your folder path
  Dim strFolder
strFolder = "C:\InetPub\wwwroot"
  
'declare your treeview object
  Dim objTV
  
'create an instance of your treeview
  Set objTV =  New TreeView
  
'set the treeview properties
objTV.ImagesFolder = "images_xp"
  
'display contents
  Call objTV.DisplayFolderContents(strFolder)
  
'clear memory
  Set objTV =  Nothing
  
%>


P/S: Remember that you can always update the sub routine ListFolderContents(objFolder,Parent) to hide some files and folders you want.



-------------------------
Master of the Game
Pages: (1)   [1]

search this forum: