Does someone have an example of FolderItem.Constructor(path as String) being used? I keep getting bugs on mine.
[code]file = dialog.ShowModal
dim path as string
If file <> Nil Then
path = file.AbsolutePath
SaveLocation = FolderItem.Constructor(path ,0)
else
MsgBox("Folder was not selected. Save Cancled.")
End If
[/code]
Thank you all so much.
Norman_P
(Norman P)
March 19, 2015, 3:51pm
2
Yeah dont do that
file = dialog.ShowModal
If file <> Nil Then
SaveLocation = file
else
MsgBox("Folder was not selected. Save Cancled.")
End If
file IS where the user selected so you dont need to go create a new one
Better use Nativepath rather than Absolutepath, which has been deprecated.
Norman_P
(Norman P)
March 19, 2015, 5:03pm
4
The dialog returns the selected location so there’s no need to go create a new folderitem that refers to the exact same location from the path you already have
Get rid of that code entirely
ABORT!
Code was deleted as Norman suggested and it worked.
There I go over complicating things again…
Thanks guys.