I have a method that check to see if a folder exists in the Documents folder and it works perfectly. However, when I try to store the FolderItem as a property I created, I cannot MsgBox it.
Dim TheLocation As FolderItem
TheLocation = SpecialFolder.Documents.Child("SolarBox")
SolarFilesLocation = TheLocation //The property created via the IDE.
If TheLocation.Exists = False Then
Dim Response As Integer = MsgBox ("The ""SolarBox"" Folder doesn't exist in the Documents folder", 36)
Select Case Response
Case 6
//User Pressed Yes
Dim SolarBoxFolder As New FolderItem
SolarBoxFolder = TheLocation
SolarBoxFolder.CreateAsFolder
MsgBox """SolarBox"" Folder Created!"
Case 7
End Select
End If
I have the following code: MsgBox SolarFilesLocation
. I know this is wrong, so I tried MsgBox Str(SolarFilesLocation)
and I get a TypeMismatchError.
How can I MsgBox a FolderItem that is a property created via the IDE? (Insert >> Property)
Thanks,
Shane.