我正在阅读有关如何声明 FileSystemObjects 对象的信息,发现了令人困惑的信息。是因为声明方式不同吗?
我向您展示了我发现的一些声明和定义 FileSystemOjbect 对象的方法:
Dim FSO As FileSystemObject
Set FSO = New FileSystemObject
Dim FSO As New FileSystemObject
Dim FSO As Object
Set FSO = CreateObject("scripting.filesystemobject")
声明 FileSystemObject 对象的正确方法是什么?