标题: 为什么提示缺少) [打印本页] 作者: gily19821116 时间: 2009-9-25 10:58 标题: 为什么提示缺少) Public Function fGetShellNameSpace(ByVal vDir, ByRef sTitle)
Dim oShell32, oFolder
Set oShell32 = CreateObject("Shell.Application")
Set oFolder = objShell.NameSpace(vDir)
If (Not objFolder Is Nothing) then
sTitle = oFolder.Title
End If
set oFolder = Nothing
set oShell32 = Nothing
End function
fGetShellNameSpace (f:\release\debug,web)
为什么会提示缺少)???很奇怪作者: xiaoyaoke 时间: 2009-9-25 11:02
Public Function fGetShellNameSpace(ByVal vDir, ByRef sTitle)
Dim oShell32, oFolder
Set oShell32 = CreateObject("Shell.Application")
Set oFolder = oShell32.NameSpace(vDir)
If (Not oFolder Is Nothing) then
sTitle = oFolder.Title
End If
set oFolder = Nothing
set oShell32 = Nothing
End function