I tried this code and the “save as” dialog wouldn’t show - no errors, just nothing.
It turned out to be a simple thing - thought I would post it here in case someone else has the same problem.
Watch out for illegal characters in the suggested file name. In this case, colons.
Wouldn’t work:
dim d as new date
dim fn As String="Requests "+d.SQLDateTime
dim f As FolderItem=GetSaveFolderItem(TextFileTypes.all,fn)
Worked:
dim d as new date
dim fn As String=“Requests “+ReplaceAll(d.SQLDateTime,”:”,"-")
dim f As FolderItem=GetSaveFolderItem(TextFileTypes.all,fn)
I also found out that on MacOS the .NativePath changes the ‘/’ text in folder names, but not in filenames in case you move from AbsolutePath to NativePath like me. I use FolderItem.Child(“ ”) where I can, but NativePath when storing a path in a preference file.