xampp
当我使用' get the directory representing this node
Dim mnodedirectory As IO.DirectoryInfo
mnodedirectory = New IO.DirectoryInfo(e.Node.Tag.ToString)
' add each subdirectory from the file system to the expanding node as a child node
For Each mdirectory As IO.DirectoryInfo In mnodedirectory.GetDirectories
' declare a child treenode for the next subdirectory
Dim mdirectorynode As New TreeNode
' store the full path to this directory in the child treenode's tag property
mdirectorynode.Tag = mdirectory.FullName
' set the child treenodes's display text
mdirectorynode.Text = mdirectory.Name
' add a dummy treenode to this child treenode to make it expandable
mdirectorynode.Nodes.Add("*temp*")
' add this child treenode to the expanding treenode
e.Node.Nodes.Add(mdirectorynode)
Next
For Each mfile As IO.FileInfo In mnodedirectory.GetFiles
Dim mfilesnode As New TreeNode
mfilesnode.Tag = mfile.FullName
mfilesnode.Text = mfile.Name
mnodedirectory.nodes.add(mfilesnode)
Next
执行上述代码时,我收到错误
在第2032行的C:\ xampp \ php \ pear \ HTML \ QuickForm.php中找不到类'PEAR_Error'
如何克服此错误?
答案 0 :(得分:0)
添加
require_once 'PEAR.php';
到文件的顶部。