I have used classes in vb6 a while ago but never in vba so I am hopeing that I have missed something blindingly obvious.
I have a Class Module called FileObject
It has 3 Public Get Properties for FullPath, FilePath and FileName
It also has a Public Sub SetFile(ByVal sFullPath as String)
This sub amongst other things sets the fullpath, filepath and filename values.
Or at leat it should. When I call SetFile:
I have placed a breakpoint in SetFile and sFullPath = ""
Why would the code be failing to pass the parameters value?
I have a Class Module called FileObject
It has 3 Public Get Properties for FullPath, FilePath and FileName
It also has a Public Sub SetFile(ByVal sFullPath as String)
This sub amongst other things sets the fullpath, filepath and filename values.
Or at leat it should. When I call SetFile:
Code:
Dim oFile as New FileObject
Call oFile.SetFile ("S:\somefolder\somefile.mdb")
I have placed a breakpoint in SetFile and sFullPath = ""
Why would the code be failing to pass the parameters value?