S
Scott
I'm trying to get the DateLastModified property of a file, but get an error
saying "User-defined type not defined" on the "Dim fl ..." line in my code
below.
I have the Windows Script Host Object Model selected in my References to
enable the use of the FSO library. What causes this error?
CODE **************
Dim FSO As New FileSystemObject
Dim fl As Scripting.file
Set fl = FSO.getfile("c:\temp\myDataFile.mdb")
MsgBox fl.DateLastModified
saying "User-defined type not defined" on the "Dim fl ..." line in my code
below.
I have the Windows Script Host Object Model selected in my References to
enable the use of the FSO library. What causes this error?
CODE **************
Dim FSO As New FileSystemObject
Dim fl As Scripting.file
Set fl = FSO.getfile("c:\temp\myDataFile.mdb")
MsgBox fl.DateLastModified